Prothon should not borrow Python strings!

Roger Binns rogerb at rogerbinns.com
Tue May 25 01:32:25 EDT 2004


Greg Ewing wrote:
> What if the file you're reading is a text file?

On Windows, Linux and Mac (and most other operating systems)
it is stored as a sequence of bytes.  To convert the bytes
to a sequence of characters (ie text) you have to know
what the encoding was that produced the sequence of
bytes.

This can be non-trivial, but pretending that the issue
doesn't exist leads you down the path and issues present
today in Python and several other languages.

Roger





More information about the Python-list mailing list