This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ionelmc
Recipients ezio.melotti, ionelmc, vstinner
Date 2014-06-19.10:59:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403175545.64.0.775481802975.issue21808@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2014-06-19 10:59:05ionelmcsetrecipients: + ionelmc, vstinner, ezio.melotti
2014-06-19 10:59:05ionelmcsetmessageid: <1403175545.64.0.775481802975.issue21808@psf.upfronthosting.co.za>
2014-06-19 10:59:05ionelmclinkissue21808 messages
2014-06-19 10:59:05ionelmccreate