Encoding problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all !

I run a ASP.NET page in Japanese Operation System (Windows XP Pro).
My Page is saved with the "shift_jis" encoding.
And my global settings (from Web.config) is as below.

<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

When I add a Label and set a Japanese Text through the HTML
designer, the string shows haunted when running the application.
The Blowser Encoding is UTF-8 this time.
Adding the codepage attribute as below to the page directive
does not change the behavior. The Blowser Encoding is shift_jis
this time.

<%@ Page ... codePage="932"%>
:
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">

I have another Japanese environment (Windows 2000 Pro) but
this problem only occurs in this specific environment, so I
feel this is something to do with the environment (IIS, Machine.config ...).

Could you please advise me what I should check.

Thanks in advance.

May
 
I managed to solve the problem by adding "fileEncoding" attribute to
the globalization setting in web.config.

Below is the setting.

<globalization requestEncoding="utf-8" responseEncoding="utf-8"
fileEncoding="shift_jis"/>
 
Back
Top