char 128? no... 256
Peter Hansen
peter at engcorp.com
Wed Feb 12 09:12:57 EST 2003
More information about the Python-list mailing list
Wed Feb 12 09:12:57 EST 2003
- Previous message (by thread): char 128? no... 256
- Next message (by thread): char 128? no... 256
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Afanasiy wrote: > > On Wed, 12 Feb 2003 03:18:43 GMT, Afanasiy <abelikov72 at hotmail.com> wrote: > > >UnicodeError: ASCII encoding error: ordinal not in range(128) > > > >This isn't even unicode, it's extended ascii characters used in foreign > >languages. I can't print them, or write them to file, etc... They are > >normal chars. This really annoying, a str() around it doesn't even work. > > Replying to all these confused threads... > > Yes I know I asked for a Unicode object in the example code. > I am trying to emulate what Python is doing. And as you can > see, it cannot be decoded. So if I am getting a unicode object > I have no way of converting it to ascii and am thus screwed. So *where* are you getting the Unicode object from?
- Previous message (by thread): char 128? no... 256
- Next message (by thread): char 128? no... 256
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list