Message8634
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. |
|
Date |
User |
Action |
Args |
2014-06-12 21:14:16 | jeff.allen | set | messageid: <1402607656.6.0.553320331242.issue2123@psf.upfronthosting.co.za> |
2014-06-12 21:14:16 | jeff.allen | set | recipients:
+ jeff.allen, zyasoft, rpan, kasso |
2014-06-12 21:14:16 | jeff.allen | link | issue2123 messages |
2014-06-12 21:14:16 | jeff.allen | create | |
|