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
> 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
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",
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,
"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
>> 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
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
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
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: