Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Codepage problems with ASP.net in IIS

Reply
Thread Tools

Codepage problems with ASP.net in IIS

 
 
hb
Guest
Posts: n/a
 
      01-17-2006
Hi,

I have a flat html file which is in the utf-8 codepage. The file is
created with Word.
This code is at the beginning of the page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/stylesheet.css" rel="stylesheet" type="text/css">
</head>

In my web application I use the <globalization
requestEncoding="utf-8" responseEncoding="utf-8" /> settings in the
web.config file.

However, when I view this html page with IE of mozilla words like
clïent (with a double dot on the i) are shown as something like
Cliënt. When I open the html page as a file from e.g. c:\ in both IE
as well as mozilla the words are shown correctly.

My conclusion is that IIS or ASP.Net causes this problem. Are there any
other settings I have to make in the web.config, IIS or where ever?

Any suggestions are welcome.

 
Reply With Quote
 
 
 
 
Paxton
Guest
Posts: n/a
 
      01-17-2006

hb wrote:
> Hi,
>
> I have a flat html file which is in the utf-8 codepage. The file is
> created with Word.
> This code is at the beginning of the page:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> <link href="css/stylesheet.css" rel="stylesheet" type="text/css">
> </head>
>
> In my web application I use the <globalization
> requestEncoding="utf-8" responseEncoding="utf-8" /> settings in the
> web.config file.
>
> However, when I view this html page with IE of mozilla words like
> cl?ent (with a double dot on the i) are shown as something like
> Cliënt. When I open the html page as a file from e.g. c:\ in both IE
> as well as mozilla the words are shown correctly.
>
> My conclusion is that IIS or ASP.Net causes this problem. Are there any
> other settings I have to make in the web.config, IIS or where ever?
>
> Any suggestions are welcome.


A quick google for "codepage web.config file" gave me this in the
second result:

pg_CodePage

This is an optional entry which can be used to define the code page
when the web pages are read. If this setting is left out, then a
standard code page of 1252 is used which should be correct for Western
character sets.

If you wish to use a different code page, the value is integer of the
form value="950".

In some circumstances you may see ? characters when the pages are
indexed. This is an indication that the code page is incorrect.

If this doesn't solve your problem, you are probably better off asking
in one of the dotnet groups, such as
microsoft.public.dotnet.framework.aspnet

/P.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cookie codepage problem on iis 5.0 eyal.herlin@gmail.com ASP General 9 01-31-2007 12:49 PM
Codepage problem Daatmor ASP .Net 4 06-17-2005 03:03 PM
Two Codepage Yahya Saad ASP .Net 0 10-13-2004 07:56 AM
Which Codepage and Charset i should used? Benny Ng ASP .Net 0 06-17-2004 07:46 PM
Culture and Codepage question Mike Prager ASP .Net 2 08-30-2003 07:22 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57