[Python-Dev] Docs for string methods ?
Wed, 05 Jul 2000 12:32:33 +0200
"M.-A. Lemburg" wrote:
> Note that 'abc'.encode('utf8') would fail because the UTF-8
> codec expects Unicod on input to its encode method (hmm, perhaps
> I ought to make the method use the 'u' parser marker instead
> of 'U' -- that way, the method would auto-convert the 'abc'
> string to Unicode using the default encoding and then proceed
> to encode it in UTF-8).
Uhm, forget that last part... 'u' doesn't do auto-conversion :-(
I could add that functionality to the interfaces in _codecmodule.c
Python Pages: http://www.lemburg.com/python/