IIS 6.0 / UTF-8 Include File Issue
From: MK (mattk_at_nospam.nospam)
Date: 06/01/04
- Next message: MK: "Re: SSL and virtual web sites"
- Previous message: Avinash Rao: "Re: Problem opening SUS 1.0 - SP1 !! help!!"
- Next in thread: MK: "Re: IIS 6.0 / UTF-8 Include File Issue"
- Reply: MK: "Re: IIS 6.0 / UTF-8 Include File Issue"
- Reply: Scotter: "Re: IIS 6.0 / UTF-8 Include File Issue"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Jun 2004 12:31:37 +0100
We have multiple sites running off one source built for load balancing
reasons.
The sites are basically the same but with different languages. E.g. .CO.UK
is in English, .FR in French, .CN in Chinese.
All the language is included in variables in UTF-8 include files. The ASP
pages themselves are stored as ANSI.
We've finally got almost everything displaying correctly by setting the
codepage etc. according to language type:
if UTF8 then
Response.Charset = "utf-8"
Response.Codepage = "65001"
Response.Write "<META HTTP-EQUIV=""Content-Type"" CONTENT=""text/html;
charset=UTF-8"">" & vbCrLf
else
Response.Charset = "iso-8859-1"
Response.Codepage = "1252"
Response.Write "<META HTTP-EQUIV=""Content-Type"" CONTENT=""text/html;
charset=iso-8859-1"">" & vbCrLf
end if
The problem is that when the page is delivered as Latin - using the else
clause above, IIS seems to implicitly think the page is UTF for text inputs.
So if a user inputs text on the .FR site (charset=iso-8859-1) all the
accented characters are lost on the input, this is fixed if we change the
charset to UTF-8 or if we remove the UTF-8 includes.
Does anyone have a fix for this?
Just making all the pages UTF-8 causes is other display problems as IIS 6.0
seems to make other assumptions (that previous versions didn't) that cause
other display problems.
It's been suggested internally we store all the text in SQL and write it to
screen from there so we have no UTF-8 includes but that's a 'hammer to crack
a nut' at the moment.
Any input appreciated.
Matt
- Next message: MK: "Re: SSL and virtual web sites"
- Previous message: Avinash Rao: "Re: Problem opening SUS 1.0 - SP1 !! help!!"
- Next in thread: MK: "Re: IIS 6.0 / UTF-8 Include File Issue"
- Reply: MK: "Re: IIS 6.0 / UTF-8 Include File Issue"
- Reply: Scotter: "Re: IIS 6.0 / UTF-8 Include File Issue"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|