473,594 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Codepage problems with ASP.net in IIS

hb
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 <globalizatio n
requestEncoding ="utf-8" responseEncodin g="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.

Jan 17 '06 #1
1 2670

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 <globalizatio n
requestEncoding ="utf-8" responseEncodin g="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.publi c.dotnet.framew ork.aspnet

/P.

Jan 17 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3756
by: Alex | last post by:
Dear all, I am now creating an CMS which support 3 languages (English, Traditional Chinese and Simplified Chinese). The user can change their languages dynamically; however, I would like to know how can I change the codepage (<% code=936%>) dynamically? THank you for all of your help. Alex Yung
10
687
by: Christopher H. Laco | last post by:
Long story longer. I need to get web user input into a backend system that a) only grocks single byte encoding, b) expectes the data transer to be 1 bytes = 1 character, and c) uses the HP Roman-6 codepage system wide. As much as it sounds good, UTF/Unicode encoding is not an option, nor is changing the codepage. Tackling the first is easy via Encoding.Default.GetBytes and shoving it over the network. However, Encoding.Default is the...
8
8373
by: Kim Bundgaard | last post by:
Hi Anyone know where I can look for problem with codepage conversion between DB2 UDB Connect EE V8.2 (fixpak 3) and DB2 UDB z/OS V7. With DB2 UDB Connect EE V7.2 (fixpak 7) i get Ebcdic X'5A' converted to Ascii X'A4', but with V8 I get it converted to Ascii X'80'. I use Ebcdic codepage/ccsid 277 and client codepage 1252. It looks like a problem with Windows Latin-1 1252/5348 - the Euro codepage,
4
7116
by: Ram | last post by:
Dear All, Good Day I am trying to convert a file which is generated on AS400 with codepage 00420 (arabic & English data combination) with no success. But using the same code( and changing 20420 to 708) I am able to convert a file from codepage ASMO 708 to windows based file and it is perfect. The following is the code I tried. i used 20420 codepage which is the nearest match for 00420. but no luck. //Open file for reading and set...
0
1817
by: asklucas | last post by:
Hi there, I got an MS Access DB, which is causing problems when the client PC is running using a Traditional Chinese codepage. The DB was probably created with Access 97, Western European codepage. However, the DB I got is now already in Access 2002 / 2003 file format, thus should be already converted to Unicode. When I open the DB on my PC with Western European codepage, it runs
12
2155
by: DC | last post by:
We are about to go online with an ASP.Net site. We have found that it is easiest for us to use windows-1252 content encoding, since that solves our problems with some special characters. Are there some general disadvantages about using this codepage (most sites I know use utf-8 or iso) - I am thinking of things like search engine incompatibilities - or should it be OK to use 1252? Thanks for any hint in advance, Regards
0
2206
by: Guido/RM/ITALY | last post by:
Hi ! i need configure codepage for DB2 Connect. i have this environment: - DB2 Server on Z/OS with codepage 500 - DB2 Connect personal Edition 8.2 on Windows 2003 - connection to DB2 via JDBC for java application that run in windows
0
1532
by: schosch | last post by:
Hello @all, we're connecting from a DB2UDB V7 on Windows to a DB2UDB on AIX. We had no problems while the version on AIX was still V7, but after wie updated the AIX-Part to V8.1 FP13 we cannot coonect any longer. When we try to connect, wie got a SQL1204 with Codepage "-469499904" and/or Regioncode "49" and SQLSTATE 22522. When we're connecting from a DB2UDBV8-Installation on Windows, we have no problems. Is there any way, to...
0
1449
by: SiliconJaltz | last post by:
Hi, I'm trying to convert some RTF text to Unicode UTF-16. The characters I'm converting are double byte Japanese. The character set is fcharset128 which should be codepage 932. I am looking for a way to ask .NET given a character set for it to return the correct codepage or encoding. How do I map the character set 128 to the correct codepage?
0
7874
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8246
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8000
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8231
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5738
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5404
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3895
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1476
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1205
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.