From: Jim B. <jb...@zy...> - 2009-01-08 15:35:19
|
Rose, We do not yet support CJK encodings (other than Unicode). However, this should be available by the beta (2.5b2) after the upcoming one (2.5b1). Incidentally, it will mostly likely be me who implements it, so I definitely would appreciate your feedback. - Jim On Thu, Jan 8, 2009 at 1:50 AM, rose Pan <ros...@gm...> wrote: > Hello, > > I would like to know if jython 2.5a1 support euc_jp encoding or not. The > directory jython25a1/Lib/encodings does have euc_jp.py. But when I tried to > use it, I got LookupError saying it's an unknown encoding. Is there > something missing? > > Thanks for your help. > > Rose > > Jython 2.5a1+ (asm:4943:4945, Jul 15 2008, 15:30:04) > [Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_05 > Type "help", "copyright", "credits" or "license" for more information. > >>> c=u'\u4f7f\u7528' > >>> c > u'\u4f7f\u7528' > >>> len(c) > 2 > >>> c2=c.encode('euc_jp') > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > LookupError: unknown encoding euc_jp > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > -- Jim Baker jb...@zy... |