[Python-3000] locale-aware strings ?

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Wed Sep 6 08:10:44 CEST 2006


David Hopwood <david.nospam.hopwood at blueyonder.co.uk> writes:

> The whole idea of a default encoding is flawed. Ideally there would be
> no default; programmers should be forced to think about the issue
> on a case-by-case basis. In some cases they might choose to open a file
> with the system encoding, but that should be an explicit decision.

Perhaps this is shows a difference between Unix and Windows culture.

On Unix there is definitely a default encoding; this is what most good
programs operating on text files assume by default. It would be insane
to have to tell each program separately about the encoding. Locale is
the OS mechanism used to provide this information in a uniform way.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/


More information about the Python-3000 mailing list