[Python-Dev] unicode imports (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Sat Jun 17 10:48:51 CEST 2006


Neil Hodgson wrote:

It should be unusual for a Chinese installation to use an install path that can not be represented in MBCS. Try encoding the install directory into MBCS before adding it to sys.path.

Indeed. Unfortunately, people apparently install an English version (because they can get that without paying any license fee), and then create directory names that can't be represented in the ANSI code page (which would then be 1252). Still, on such a system, the target folder for programs should be "Program Files".

If people do that, they should change the system locale to some Chinese locale, but being non-admin people, they often don't.

Regards, Martin



More information about the Python-Dev mailing list