How to inform remote server about your local character set

According to Hypertext Transfer Protocol -- HTTP/1.1 (RFC 2068), your browser can request the document character set by using Accept-Charset header field. The example

Accept-Charset: koi8-r, windows-1251; q=0.8

means that your browser knows about koi8-r and windows-1251 character sets besides default iso-8859-1 which any browser must understand. If no quality parameter is given, 1.0 value assumed (like for koi8-r character set in this example). Character sets with bigger quality values preferred.

If no Accept-Charset field is given, any character set is acceptable. In this case you can't tell the server that you use KOI8-R character set and it can feed you with, say CP1251.

Return to Main Page