|
From: <Chr...@t-...> - 2001-06-22 08:10:28
|
Hi,
Jython 2.1a1 misinterprets the letter Ö (big O-Umlaut or Unicode u00d6 or \xd6
in Phyton) within strings as EOF.
My JDK ist 1.3.1.
OS is Windows 98SE
Local ist German, with characterset 850
This is what Python 2.1 shows if Ö is the only letter in the string
>>> "Ö"
'\xd6'
This ist what Jython 2.1a1 shows for the same case
>>> "Ö"
Traceback (innermost last):
(no code object) at line 0
File "<console>", line 2
SyntaxError: Lexical error at line 2, column 0. Encountered: <EOF> after : ""
>>>
Here now Python when Ö ist inclosed in a word
>>> "KÖLN"
'K\xd6LN'
This is Jython 2.1a1 for the same case:
>>> "KÖLN"
Traceback (innermost last):
(no code object) at line 0
File "<console>", line 1
"KÖLN"
^
SyntaxError: invalid syntax
I would appreciate a hint on how to bypass or correct this problem if it is not
a bug. I can not use Jython for my purposes, while my Java is still to limited
to fix the problem on my own and send you a patch.
Regards
Christoph Becker
|