Message125786
| Author |
vstinner |
| Recipients |
ingemar, r.david.murray, terry.reedy, vstinner |
| Date |
2011年01月08日.16:13:16 |
| SpamBayes Score |
0.0004939045 |
| Marked as misclassified |
No |
| Message-id |
<1294503204.02.0.116383177589.issue10828@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> Victor: How do I determine what code page my old w2k is using?.
python.exe -c 'import locale; print("ANSI code page: {}".format(locale.getpreferredencoding()))'
> On Windows, #8611 (and #9425) permit to use non-ASCII characters
> in the module path... but only characters encodable to your
> ANSI code page.
If you would like to check if your path is encodable to your ANSI code page, try:
python.exe -c "import os; fn=os.fsencode('ä'); print(ascii(fn))"
If fsencode() raises an error, the filename is not encodable to your ANSI code page and you have to wait until #3080 is fixed :-) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年01月08日 16:13:24 | vstinner | set | recipients:
+ vstinner, terry.reedy, r.david.murray, ingemar |
| 2011年01月08日 16:13:24 | vstinner | set | messageid: <1294503204.02.0.116383177589.issue10828@psf.upfronthosting.co.za> |
| 2011年01月08日 16:13:16 | vstinner | link | issue10828 messages |
| 2011年01月08日 16:13:16 | vstinner | create |
|