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 vstinner
Recipients amaury.forgeotdarc, loewis, ocean-city, vstinner
Date 2011-06-13.13:59:21
SpamBayes Score 1.767978e-10
Marked as misclassified No
Message-id <1307973562.48.0.749485872329.issue12281@psf.upfronthosting.co.za>
In-reply-to
Content
Using my patch, it is possible create a codec for any code page on demand: register a function checking if the encoding name starts with "cp" and ends with a valid code page number.

Even if it is bad idea to set the OEM code page to 65001, implement a codec for this code page would solve issue #6058 (and help issues #7441 and #10920). See also issue #1602 (Unicode support of the Windows console).

I don't know if the Windows codec should be use, it available, instead of Python builtin codecs for Windows code pages (e.g. "cp1252" encoding).
History
Date User Action Args
2011-06-13 13:59:22vstinnersetrecipients: + vstinner, loewis, amaury.forgeotdarc, ocean-city
2011-06-13 13:59:22vstinnersetmessageid: <1307973562.48.0.749485872329.issue12281@psf.upfronthosting.co.za>
2011-06-13 13:59:21vstinnerlinkissue12281 messages
2011-06-13 13:59:21vstinnercreate