homepage Welcome to WebmasterWorld Guest from 54.163.70.249
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
Site IIS 6 Charset codification setting - No effect
My pages do not specify a charset - Firefox shows a "?" for special chars
ferfer




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

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!

 

makeupalley




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

hope one of these might help:

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

or

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

ferfer




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

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)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved