[PyPy-issue] [issue585] Missing euc-kr encoding
Brian Hong
pypy-dev-issue at codespeak.net
Wed Jan 12 05:53:56 CET 2011
Brian Hong <serialx.net at gmail.com> added the comment:
$ cat t.py
# -*- coding: utf-8 -*-
s = u'\ud55c\uae00'
print repr(s)
print repr(s.encode('euc-kr'))
print repr(s.encode('cp949'))
$ python t.py
u'\ud55c\uae00'
'\xc7\xd1\xb1\xdb'
'\xc7\xd1\xb1\xdb'
$ pypy t.py
u'\ud55c\uae00'
Traceback (most recent call last):
File "app_main.py", line 53, in run_toplevel
File "t.py", line 5, in <module>
print repr(s.encode('euc-kr'))
LookupError: unknown encoding: euc-kr
This should help.
_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue585>
_______________________________________________________
More information about the Pypy-issue
mailing list