[Python-3000] locale-aware strings ?
"Martin v. Löwis"
martin at v.loewis.de
Wed Sep 13 06:53:52 CEST 2006
David Hopwood schrieb:
> Cp436 is almost certainly *not* the encoding set by the OS; Python
> has got it wrong.
Just to repeat myself: Python is *not* wrong, the terminal *indeed*
uses CP 436.
> If Brian is using an English-language variant of
> Windows XP and has not changed the defaults, the system ("ANSI")
> encoding will be Cp1252-with-Euro (which is similar enough to ISO-8859-1
> if C1 control characters are not used).
Yes, and the OEM encoding will be CP 436. It is common to interpret
CP_ACP as the system encoding, yet Windows has two of them, and Python
knows very well which one to use in which place.
Regards,
Martin
More information about the Python-3000
mailing list