"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 directly, though. -- Marc-Andre Lemburg ______________________________________________________________________ Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4