Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert string to byte without encoding python

>>> message = 'test 112 hello: what?!'
>>> message = message.encode('iso-8859-15')
>>> message 
b'test 112 hello: what?!'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #byte #encoding #python
ADD COMMENT
Topic
Name
7+6 =