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 _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com