How to handle Python unicodeHow to handle Python unicode strings with null-bytes ' right way '? strings with null-bytes ' right way '?


#1

How to handle Python unicodeHow to handle Python unicode strings with null-bytes ’ right way '? strings with null-bytes ’ right way '?


#2

When you decode the bytes you can tell it how to handle the errors. Take a look here:

https://docs.python.org/3/howto/unicode.html#files-in-an-unknown-encoding