From: Paul P. <pa...@pr...> - 2002-01-10 17:47:57
|
Brian Quinlan reported this strange result to me: Jython 2.1 on java1.3.1_02 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> x=u'\x81' >>> unicode(x) Traceback (innermost last): File "<console>", line 1, in ? UnicodeError: ascii decoding error: ordinal not in range(128) If Jython is going to unify 8-bit strings and Unicode strings (as Java does) then it should probably treat them all as Unicode strings, not as 8-bit. Paul Prescod |