Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python byte like to string

>>> b"abcde"
b'abcde'

# utf-8 is used here because it is a very common encoding, but you
# need to use the encoding your data is actually in.
>>> b"abcde".decode("utf-8") 
'abcde'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #byte #string
ADD COMMENT
Topic
Name
1+4 =