Message138246
| 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:22 | vstinner | set | recipients:
+ vstinner, loewis, amaury.forgeotdarc, ocean-city |
| 2011年06月13日 13:59:22 | vstinner | set | messageid: <1307973562.48.0.749485872329.issue12281@psf.upfronthosting.co.za> |
| 2011年06月13日 13:59:21 | vstinner | link | issue12281 messages |
| 2011年06月13日 13:59:21 | vstinner | create |
|