What if my Web Server sends the wrong charset?# XML - WWW明日之星
w*s
1 楼
Many (most) web servers do not send the correct charset in
the HTTP/MIME headers. In fact, many Web Servers do not
allow you to specify the character set at all!
Here are some guidelines:--
in the future, Web Servers will look at the XML encoding
header (but not yet; XML is new);
if your site only serves one encoding, make sure
that your webserver sends that as the default;
if your webserver supports HTTP 1.1 content negotiation
(e.g. Apache) and you have many different
the HTTP/MIME headers. In fact, many Web Servers do not
allow you to specify the character set at all!
Here are some guidelines:--
in the future, Web Servers will look at the XML encoding
header (but not yet; XML is new);
if your site only serves one encoding, make sure
that your webserver sends that as the default;
if your webserver supports HTTP 1.1 content negotiation
(e.g. Apache) and you have many different