How to get the characters from a byte array encoded in python -


i have byte array encoded in utf-8 format. need characters , write file. please b byte array

b=[1,1,-127,-125] 

i need convert each byte character

python 2: can use chr() function. 1 more hint: doesn't matter encoding list of integers has.

python 3: can create instance of bytes() list.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -