[PyPy-issue] [issue585] Missing euc-kr encoding

Benjamin Peterson benjamin at python.org
Wed Jan 12 05:55:56 CET 2011


2011/1/11 Brian Hong <pypy-dev-issue at codespeak.net>:
>
> 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

Yes, it's a known issue that CJK codecs are missing.



-- 
Regards,
Benjamin



More information about the Pypy-issue mailing list