Trouble with internationalized path under windows

Andrew Berg bahamutzero8825 at gmail.com
Sun Jan 22 15:41:06 EST 2012


On 1/22/2012 2:08 PM, Jacob Hallén wrote:
> Am using WIndows 7 with a Swedish locale. The program uses Unicode 
> successfully internally, and the Windows help says that the locale only 
> applies to non-Unicode programs. I have tried with using characters from the 
> Latin-1 character set in the path, ones that are not in the ASCII character 
> set. In this case, things work fine.
If it's a character you can type on your terminal, you shouldn't have
issues, but pasting other characters doesn't work (they're converted to
other characters). Despite Unicode being used for everything else, the
terminal on Windows still uses a locale-dependent code page for
character encoding. There is supposed to be a UTF-8 code page (cp65001),
but it's not supported by Python (3.3 is planned to support it), and it
doesn't even seem to work, at least for me.

-- 
CPython 3.2.2 | Windows NT 6.1.7601.17640



More information about the Python-list mailing list