How to display unicode with the CGI module?
Jan Claeys
usenet at janc.be
Sun Nov 25 20:00:31 EST 2007
Op Sun, 25 Nov 2007 13:02:26 -0800, schreef coldpizza:
> It is funny that encode() and decode() omit the name of the other
> encoding (Unicode ucs2?), which makes it far less readable than a
> s.recode('ucs2','utf8').
The internal encoding/representation of a "string" of Unicode characters
is considered an implementation detail and is in fact not always the same
(e.g. a cpython build parameter selects UCS2 or UCS4, and it might be
something else in other implementations).
See the 'Py_UNICODE' paragraph in:
<http://docs.python.org/api/unicodeObjects.html>
--
JanC
More information about the Python-list
mailing list