[Python-Dev] Encoding detection in the standard library?

Bill Janssen janssen at parc.com
Tue Apr 22 23:42:28 CEST 2008

> > When a web browser POSTs data, there is no standard way of communicating
> > which encoding it's using.
> That's just not true. Web browser should and do use the encoding of the
> web page that originally contained the form.

Since the site that receives the POST doesn't necessarily have access
to the Web page that originally contained the form, that's not really
helpful.  However, POSTs can use the MIME type "multipart/form-data"
for non-Latin-1 content, and should.  That contains facilities for
indicating the encoding and other things as well.


More information about the Python-Dev mailing list