Forum Moderators: open

Message Too Old, No Replies

Can you specify charset on IIS 5?

         

zomega42

1:09 am on Sep 14, 2004 (gmt 0)

10+ Year Member



I need to specify a character set for .html files on IIS 5. I tried adding a MIME type ".html" with content-type=text/html;charset=UTF-8 but it doesn't seem to work.

It causes a 406 "not acceptable" error, as if it does not recognize that a browser accepting "text/html" should be happy with "text/html;charset=UTF-8".

Is there any other way to specify charset in IIS?

bakedjake

7:02 am on Sep 15, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hi zomega42, check out the Response.Charset method in asp.

zomega42

6:25 pm on Sep 15, 2004 (gmt 0)

10+ Year Member



Thanks for the suggestion bakedjake, but I need to specify the charset for HTML files, not ASP. Special characters, like accented vowels, aren't showing up properly.

For now, I am just going to specify the charset in a META tag, but if anyone knows how to do it in the MIME header with IIS that would be more convenient.