Welcome to WebmasterWorld Guest from 54.158.51.150

Forum Moderators: ocean10000

Message Too Old, No Replies

Site IIS 6 Charset codification setting - No effect

My pages do not specify a charset - Firefox shows a "?" for special chars

     
7:28 pm on Feb 1, 2007 (gmt 0)

10+ Year Member



Hi, I have a problem that my MS-Certified hosting could not solve... Maybe someone here could help me...

Only using firefox, my pages containing special spanish characters (most pages) like "á" or "í" are shown as "?" (most times FireFox is not guessing the charset correctly as IE)

I tried forcing a charset inserting an ASP line in some pages:
<%Response.charset="ISO-8859-1"%>
and those pages loaded OK, I have also tried with utf-8, but was not ok although it was the recommended one.
(The meta tag charset specification method worked the same way)

I don't know how to fix the site at once without editing 5000+ pages (also I would like to keep the original date stamp), it seems there is a way to specify the charset in IIS 6 setting a custom header for my site with "text/html;charset=iso-8859-1" but once the hosting support guy did that, it remained unfixed, it seems that although specified the charset code does not appear in the content-type line added, the HTTP header shows:

HTTP/1.1·200·OK(CR)(LF)
Connection:·close(CR)(LF)
Date:·Tue,·23·Jan·2007·03:26:05·GMT(CR)(LF)
Server:·Microsoft-IIS/6.0(CR)(LF)
MicrosoftOfficeWebServer:·5.0_Pub(CR)(LF)
X-Powered-By:·ASP.NET(CR)(LF)
Content-Length:·15393(CR)(LF)
Content-Type:·text/html(CR)(LF)
Set-Cookie:·ASPSESSIONIDCQQSSCTS=DKBCMLGCDGBPHICPHPHOBAOA;·path=/(CR)(LF)
Cache-control:·private(CR)(LF)
(CR)(LF)

While the pages with the hard-coded line showed that line as:
Content-Type:·text/html;·Charset=ISO-8859-1(CR)(LF)

The hosting support tried several times, but could not fix it..

Any help will be apreciated!

10:46 am on Feb 3, 2007 (gmt 0)

10+ Year Member



hope one of these might help:

Response.AddHeader "Content-Type", "text/html;ISO-8859-1"

or

Response.AddHeader "Content-Type", "ISO-8859-1"

6:27 am on Feb 5, 2007 (gmt 0)

10+ Year Member



Thank you for the answer Makeupalley, but that would require editing each page to add the code...

The idea is to get IIS configured to fix the site at once without editing 5000+ pages (also I would like to keep the original date stamp)

 

Featured Threads

Hot Threads This Week

Hot Threads This Month