About size of Unicode string

Leif K-Brooks eurleif at ecritters.biz
Mon Jun 6 22:28:52 CEST 2005


Frank Abel Cancio Bello wrote:
> 	request.add_header('content-encoding', 'UTF-8')

The Content-Encoding header is for things like "gzip", not for
specifying the text encoding. Use the charset parameter to the
Content-Type header for that, as in "Content-Type: text/plain;
charset=utf-8".



More information about the Python-list mailing list