Python converts my 8-bit strings

gradha at iname.com gradha at iname.com
Mon Jan 15 15:44:04 EST 2001


Fredrik Lundh <fredrik at effbot.org> wrote:
> gradha at iname.com wrote:
>> When I for example fed string.split with an 8 bit string, all the 8 bit
>> characters get converted into what looks like utf-8 codes.

> you're probably confusing the string escaping done by
> the "repr" function with utf-8 encoding.

Exactly. Thanks for the info (in fact, I was going to ask shortly what was
that repr thing...).

--

 Grzegorz Adam Hankiewicz   gradha at iname.com - http://gradha.infierno.org
 Other web pages:  http://glub.ehu.es/  -  http://welcome.to/gogosoftware/



More information about the Python-list mailing list