|
|
|
Mailing List Archive
Search mailing list archive only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [QF-Test] Jython Error on Version Jython 2.2.1 with Qftest 3.0.0: UnicodeError: ascii encoding error: ordinal not in range (128)
- Subject: Re: [QF-Test] Jython Error on Version Jython 2.2.1 with Qftest 3.0.0: UnicodeError: ascii encoding error: ordinal not in range (128)
- From: Martin Moser <martin.moser@?.de>
- Date: Tue, 23 Dec 2008 10:06:17 +0100
Hello Georg,
I created following script, which works on my system:
string = '0,00 \u20AC'
print string.encode('ascii', 'replace')
I found a nice tutorial for dealing with unicode strings in Python at
<http://www.reportlab.com/i18n/python_unicode_tutorial.html>.
If you still encounter troubles, could you please send the script to me
(not to the list). So, that we can take a closer look at the script.
Best Regards,
Martin
--On Montag, Dezember 22, 2008 12:00:21 +0100
georg.kratz-kummetz@?.de wrote:
We have a new Jython Error in the new Version of Jython 2.2.1
the Error is reproducable when inserting the command
print (u'0,00 \u20AC')
into the Jython Terminal
the outcome is:
UnicodeError: ascii encoding error: ordinal not in range(128)
The error is caused by a string in java which contains the € (= \u20AC)
I tried to convert the string with ..encode('ascii','replace'))
this worked but threw an error, when the variable with the string was
'None', what happens as well.
is there a method to avoid these errors like in the previous versions
Best Regards
Georg Kratz-Kummetz
Klinikrechenzentrum der Uniklinik Freiburg
Tel. 0761 270 2291
_______________________________________________
qftest-list mailing list
qftest-list@?.de
http://www.qfs.de/mailman/listinfo/qftest-list
--
Martin Moser martin.moser@?.de
Quality First Software GmbH http://www.qfs.de
Tulpenstr. 41 Tel: +49 8171 38648-14
DE-82538 Geretsried Fax: +49 8171 38648-16
GF: Gregor Schmid, Karlheinz Kellerer HRB München 14083
|
|  |