Message8634

Author jeff.allen
Recipients jeff.allen, kasso, rpan, zyasoft
Date 2014-06-12.21:14:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402607656.6.0.553320331242.issue2123@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, that will work. But you can't print that string out until #1066 is fixed. 

Somewhat to my surprise, I can type Chinese characters at the prompt and that works too. Or rather, I can paste them, since I don't know how to type Chinese.

Jython 2.7b3+ (default:1f517f1e5a08, Jun 11 2014, 22:42:31)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_51
Type "help", "copyright", "credits" or "license" for more information.
>>> execfile("test.py")
>>> create(u'\u4f7f\u7528')
u'\u4f7f\u7528'
>>> print _
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
LookupError: unknown encoding 'x-mswin-936'
>>> u'\u4f7f\u7528'
u'\u4f7f\u7528'
>>> u'使用'
u'\u4f7f\u7528'
>>>

To get hold of this yourself, you would have to build Jython from source (just needs hg, ant and the jdk I think), or wait for beta 4, which Jim expects will also have the codec you need.
History
Date User Action Args
2014-06-12 21:14:16jeff.allensetmessageid: <1402607656.6.0.553320331242.issue2123@psf.upfronthosting.co.za>
2014-06-12 21:14:16jeff.allensetrecipients: + jeff.allen, zyasoft, rpan, kasso
2014-06-12 21:14:16jeff.allenlinkissue2123 messages
2014-06-12 21:14:16jeff.allencreate