Message220964
cp65001 is purported to be an alias for utf8.
I get these results:
C:\Python27>chcp 65001
Active code page: 65001
C:\Python27>python
Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
LookupError: unknown encoding: cp65001
>>>
LookupError: unknown encoding: cp65001
>>> locale.getpreferredencoding()
LookupError: unknown encoding: cp65001
>>>
And on Python 3.4 chcp doesn't seem to have any effect:
C:\Python34>chcp 65001
Active code page: 65001
C:\Python34>python
Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getpreferredencoding()
'cp1252'
>>> locale.getlocale()
(None, None)
>>> locale.getlocale(locale.LC_ALL)
(None, None) |
|
Date |
User |
Action |
Args |
2014-06-19 10:59:05 | ionelmc | set | recipients:
+ ionelmc, vstinner, ezio.melotti |
2014-06-19 10:59:05 | ionelmc | set | messageid: <1403175545.64.0.775481802975.issue21808@psf.upfronthosting.co.za> |
2014-06-19 10:59:05 | ionelmc | link | issue21808 messages |
2014-06-19 10:59:05 | ionelmc | create | |
|