-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for cp858 #52264
Comments
Based on codepage 850, codepage 858 adds support for the euro symbol1. This codepage is used on many thermal receipt printers, such as the Epson TM-T88IV and NCR 7198 as the only way to print a euro. There is no CP858.TXT on the unicode.org ftp, so I've attached the diff of the TXT file to create it from CP850, as well as the diff for cp858.py against cp850.py. The codepage is supported by java2 and by iconv3, and it'd be nice if future versions of python could support this natively. Let me know if there's a better way to provide a fix. |
Uploading corrected diff -- the old one missed a couple of instances of DOTLESS I -> EURO. |
Benjamin: OK to put this in 2.7? |
I also noticed that libforensics supplies a codec for cp858, if that's helpful to double-check the implementation. http://code.google.com/p/libforensics/source/browse/code/lf/win/codepage/cp858.py |
A new codec is quite self-contained, so that's ok. |
Thanks all, committed in r81499. |
This commit follows the same rationale as for CPython[1]: > Based on codepage 850, codepage 858 adds support for the euro > symbol[2]. This codepage is used on many thermal receipt printers, > such as the Epson TM-T88IV and NCR 7198 as the only way to print a > euro. There is no CP858.TXT on the unicode.org ftp (...). [1]: python/cpython#52264 (comment) [2]: http://en.wikipedia.org/wiki/CP858
This commit follows the same rationale as [for CPython][1]: > Based on codepage 850, codepage 858 adds support for the euro > [symbol][2]. This codepage is used on many thermal receipt printers, > such as the Epson TM-T88IV and NCR 7198 as the only way to print a > euro. There is no CP858.TXT on the unicode.org ftp (...). [1]: python/cpython#52264 (comment) [2]: http://en.wikipedia.org/wiki/CP858
This commit follows the same rationale as [for CPython][1]: > Based on codepage 850, codepage 858 adds support for the euro > [symbol][2]. This codepage is used on many thermal receipt printers, > such as the Epson TM-T88IV and NCR 7198 as the only way to print a > euro. There is no CP858.TXT on the unicode.org ftp (...). [1]: python/cpython#52264 (comment) [2]: http://en.wikipedia.org/wiki/CP858
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: