W3C home > Mailing lists > Public > www-international@w3.org > January to March 2002

RE: Setting charset in IIS headers

From: Yves Arrouye <yves@realnames.com>
Date: Mon, 25 Mar 2002 15:28:19 -0800
Message-ID: <7FC3066C236FD511BC5900508BAC86FE9199D2@trestles.internal.realnames.com>
To: "'www-international@w3.org'" <www-international@w3.org>
Have you tried setting the "Custom HTTP Headers" and add your "Content-Type:
text/html; charset=xxxxxx"? Maybe they'll override the .asp mapping.
-----Original Message-----
From: Dave Ringoen [mailto:dringoen@alventive.com] 
Sent: Thursday, March 21, 2002 7:51 AM
To: 'www-international@w3.org'
Subject: Setting charset in IIS headers
Referencing this web page:
It describes a procedure for setting a charset for localized pages:
*  For IIS 4 and 5, in Internet Services Manager, right-click "Default Web
Site" (or the site you want to configure) and go to "Properties" => "HTTP
Headers" => "File Types..." => "New Type...". Put in the extension you want
to map, separately for each extension; IIS users will probably want to map
.htm, .html, .asp,... Then, for Content type, add
"text/html;charset=iso-8859-1" (without the quotes; substitute your desired
charset for iso-8859-1; do not leave any spaces anywhere because IIS ignores
all text after spaces). 
I am unable to make this work. For an asp, the web server always returns
"Content-Type: text/html", even when I define it to be something else. I
created a new extension .xyz, and managed to have it set that correctly, but
no matter what I do for "asp" it ends up as "text/html". Just curious if any
of you can help me make this work.
Thank you,
Dave Ringoen
Alventive, Inc.
Received on Monday, 25 March 2002 18:32:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:21 UTC