Message4800

Author Christof
Recipients Christof
Date 2009-06-06.19:24:07
SpamBayes Score 9.886552e-10
Marked as misclassified No
Message-id <1244316248.87.0.155483070972.issue1368@psf.upfronthosting.co.za>
In-reply-to
Content
I think I read about a similar problem before but could not find
anything in particular (sorry if this is a known behaviour), but:

Jython (2.5rc3)
>>> '\xe4'.decode('utf-8')
u''

Python 
>>> '\xe4'.decode('utf-8')
...
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 0:
unexpected end of data

The same for example for '1'.decode('utf-16') which does raise in Python
but simple returns u'' in Jython.

Is there any way this might change or work around this incompatibility?
I have problems running all my tests. 

Thanks a lot!
History
Date User Action Args
2009-06-06 19:24:09Christofsetrecipients: + Christof
2009-06-06 19:24:08Christofsetmessageid: <1244316248.87.0.155483070972.issue1368@psf.upfronthosting.co.za>
2009-06-06 19:24:08Christoflinkissue1368 messages
2009-06-06 19:24:07Christofcreate