Setting the encoding in the basic auth header

"Martin v. Löwis" martin at
Tue Jun 12 08:20:21 CEST 2007

> It seems that both browsers are using the iso-8859-1 charset. Is there
> any way I can get them to encode the data with utf-8 instead?

As a further follow-up, see

They explain that *TEXT is defined in RFC 2616, which specifies
that non-ASCII characters must be MIME-header-encoded. So
0BA4 should be encoded as '=?utf-8?b?4K6k?=', according to
the specification. No browser currently implements that.


More information about the Python-list mailing list