Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error
- From: "Martin v. Löwis" <martin@xxxxxxxxxxx>
- Date: Fri, 30 May 2008 23:33:48 +0200
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 API to find out the encoding should be used,
as exposed in locale.getpreferredencoding().
Regards,
Martin
.
- References:
- Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error
- From: Josep
- Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error
- From: "Martin v. Löwis"
- Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error
- From: Peter Otten
- Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error
- Prev by Date: Importing modules from packages with relative imports
- Next by Date: Re: accumulator generators
- Previous by thread: Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error
- Next by thread: Generating event from event
- Index(es):
Relevant Pages
|