Hi all,
I am trying to open a file that contains non-ascii characters in its file path,
e.g. "c:\path\<n on-ascii>.file"
I have found lots of information on the Internets
- unicode()
- # -*- coding: <encode type> -*-
- encode()/decode()
They correctly change characters to the output screen, but the "open()" function really don't give a ***, it just refuse to accept the changes???!!!
What am I missing? This is driving me crazy (almost made me cry...)
I run python 3.0 on Windows, and sys.getfilesyst emencoding() gives me "mbcs",
Please help...
I am trying to open a file that contains non-ascii characters in its file path,
e.g. "c:\path\<n on-ascii>.file"
I have found lots of information on the Internets
- unicode()
- # -*- coding: <encode type> -*-
- encode()/decode()
They correctly change characters to the output screen, but the "open()" function really don't give a ***, it just refuse to accept the changes???!!!
What am I missing? This is driving me crazy (almost made me cry...)
I run python 3.0 on Windows, and sys.getfilesyst emencoding() gives me "mbcs",
Please help...
Comment