Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-06-07 Thread Jan Claeys
Op Fri, 30 May 2008 22:37:14 +0200, schreef M.-A. Lemburg: > On 2008-05-30 17:41, Peter Otten wrote: >> Josep wrote: >>> My Python version is 2.5.2, Ubuntu Hardy .deb package. >> Python might get confused by an @EURO suffix in the locale: > Right, that's what's happening. > > The locale module

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread Martin v. Löwis
> The function first normalizes the "@" away and then looks for it. Is that > the expected behaviour? I believe this functionality is broken by design. Python can't possibly know correctly what each locale name on each system means, and what encoding is used in the locale. Instead, the system's A

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread M.-A. Lemburg
On 2008-05-30 22:37, M.-A. Lemburg wrote: On 2008-05-30 17:41, Peter Otten wrote: Josep wrote: I'm playing with an application framework (or kinda) that's developed with python, and it throws this error: File "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py",

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread M.-A. Lemburg
On 2008-05-30 17:41, Peter Otten wrote: Josep wrote: I'm playing with an application framework (or kinda) that's developed with python, and it throws this error: File "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py", line 281, in execute sql = unicode(sql,

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread Peter Otten
"Martin v. Löwis" wrote: >>> File >>> "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py", >>> line 281, in execute >>> sql = unicode(sql, self.Encoding) >>> LookupError: unknown encoding: utf_8_euro >> >> At the application (DABO) mailing list, they have pointed t

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread Martin v. Löwis
>> File >> "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py", >> line 281, in execute >> sql = unicode(sql, self.Encoding) >> LookupError: unknown encoding: utf_8_euro > > At the application (DABO) mailing list, they have pointed that this has > to be a Python i

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread Peter Otten
Josep wrote: > I'm playing with an application framework (or kinda) that's developed > with python, and it throws this error: > > >> File >> "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py", >> line 281, in execute >> sql = unicode(sql, self.Encoding) >> Lookup

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread Sanoski
On May 30, 8:24 am, Josep <[EMAIL PROTECTED]> wrote: > I'm playing with an application framework (or kinda) that's developed > with python, and it throws this error: > > > File > > "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py", > > line 281, in execute > >     sq

Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread Josep
I'm playing with an application framework (or kinda) that's developed with python, and it throws this error: > File > "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py", > line 281, in execute > sql = unicode(sql, self.Encoding) > LookupError: unknown encoding: