Post request and encoding

Dieter Maurer dieter at handshake.de
Tue Nov 3 13:30:55 EST 2020


Hernán De Angelis wrote at 2020-11-2 10:06 +0100:
> ...
>My request has the form:
>
>header = {'Content-type':'application/xml', 'charset':'utf-8'}

Not your problem (which you have already resolved) but:
`charset` is not an individual header but a parameter
for the `Content-Type` header. For `xml` `utf-8` is the default charset.


More information about the Python-list mailing list