Setting the encoding in the basic auth header
"Martin v. Löwis"
martin at v.loewis.de
Tue Jun 12 02:20:21 EDT 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
https://bugzilla.mozilla.org/show_bug.cgi?id=41489
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.
Regards,
Martin
More information about the Python-list
mailing list