[Python-Dev] Re: String methods... finally

Greg Stein gstein at lyra.org
Tue Jun 15 11:05:43 CEST 1999


Ka-Ping Yee wrote:
>...
> (But if a Unicode string contains characters outside of
> the Latin-1 range, is it supposed to raise an exception
> on an attempt to convert to an ordinary string?  In that
> case, the actual behaviour of the above example would be
> a) and i'm not sure if that would get annoying fast.)

I forget the "last word" on this, but (IMO) str(unicode_object) should
return a UTF-8 encoded string.

Cheers,
-g

p.s. what's up with Mailman... it seems to have broken badly on the
[Python-Dev] insertion... I just stripped a bunch of 'em

--
Greg Stein, http://www.lyra.org/




More information about the Python-Dev mailing list