Message1527

Author nhiro
Recipients
Date 2007-03-05.16:02:54
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Hi, I'm Japanese.
assume XX is Japanese string and its code are u'\u3042'
YY is another one u'\u304b'.

exec() destroys this string to meanless bytes.

>>> exec("print [hex(ord(x)) for x in u'XX']")
['0x3f', '0x3f']
>>> exec("print [hex(ord(x)) for x in u'YY']")
['0x3f', '0x3f']

if I don't use multibyte string, It works well

>>> exec("print [hex(ord(x)) for x in u'\u3042']")
['0x3042']

and printing multibyte also works well

>>> print u"XX"
??
>>> print u"\u3042"
XX

so I think the bug is in parsing process of Jython code.
History
Date User Action Args
2008-02-20 17:17:46adminlinkissue1674190 messages
2008-02-20 17:17:46admincreate