[Python-3000] Pre-PEP: Easy Text File Decoding

Guido van Rossum guido at python.org
Sun Sep 10 19:11:46 CEST 2006


On 9/10/06, Marcin 'Qrczak' Kowalczyk <qrczak at knm.org.pl> wrote:
> Here is a counter-proposal.
>
> There is a variable sys.default_encoding. It's used by file opening
> functions when the encoding is not specified explicitly, among others.
> Its initial value is set in site.py with a site-specific algorithm.

This doesn't seem to allow guessing based on the file's contents. That
seems intentional from your part, but I believe it makes for way too
many disappointing user experiences.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list