Python·100 questions

How to work with encodings and Unicode?

Answer
Always specify encoding when working with text files.
Terminal/Windows may need configuration.
Inside Python, strings are Unicode.
Bytes ↔ string: encode/decode.
Solve issues at IO boundary.
Was this answer helpful?

More questions in this topic

Related questions from other topics