Tag Info

New answers tagged


What Python does is writing the encoding out in the source code, specifically a specially-formatted comment. See PEP 263. It doesn't need to be a comment, but spelling out the encoding is pretty much the only sensible approach. "Guessing" encoding from raw bytes does not work very well, and is far too magical for the tastes of most programmers. It would be ...

Top 50 recent answers are included