Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python string vs byte string

#A byte string can be decoded back into a character string, 
#if you know the encoding that was used to encode it.
b'I am a string'.decode('ASCII')
b'I am a string'.decode('utf-8')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #string #byte #string
ADD COMMENT
Topic
Name
6+4 =