473,505 Members | 15,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Encoding problem

May
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
Nov 19 '05 #1
1 1691
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"/>
"May" wrote:
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

Nov 19 '05 #2

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

Similar topics

2
49290
by: Ann | last post by:
Hi, Is there any way to Change encoding of Java Vm to ISO-8859-1? i am using Java vm along with an application called opencms. I get the following error message.. Error: the encoding of your...
8
2794
by: janeaustine50 | last post by:
Python's InteractiveInterpreter uses the built-in compile function. According to the ref. manual, it doesn't seem to concern about the encoding of the source string. When I hand in an unicode...
7
4936
by: Mark | last post by:
Hi... I've been doing a lot of work both creating and consuming web services, and I notice there seems to be a discontinuity between a number of the different cogs in the wheel centering around...
8
2463
by: davisjoseph | last post by:
Hi All, I'm newbie to this XML world. My problem is to identify the encoding type of XML at runtime. What currently I'm doing is checking whether BOM is available in the XML; based on the BOM...
8
607
by: Demon News | last post by:
I'm trying to do a transform (Using XmlTransform class in c#) and in the Transform I'm specifying the the output xsl below: <xsl:output method="xml" encoding="UTF-8" indent="no"/> the...
4
8811
by: fitsch | last post by:
Hi, I am trying to write a generic RSS/Atom/OPML feed client. The problem is, that those xml feeds may have different encodings: - <?xml version="1.0" encoding="ISO-8859-1" ?>... - <?xml...
5
3482
by: James Wong | last post by:
Dear all, I've a web service function and it contains a parameter in System.Text.Encoding. I found that the data type of this parameter in caller application becomes MyWebSvcName.Encoding...
0
3589
by: Janusz Nykiel | last post by:
I've stumbled upon unexpected behavior of the .NET 2.0 System.Xml.XmlWriter class when using it to write data to a binary stream (System.IO.Stream). If the amount of data is less than a certain...
3
2474
by: Martin Z | last post by:
Hi, I have an application that involves sending a lot of XML data to various places. The problem is that once in a while, I just want the XML document as a string (for example, sending to a...
23
4988
by: Allan Ebdrup | last post by:
I hava an ajax web application where i hvae problems with UTF-8 encoding oc chineese chars. My Ajax webapplication runs in a HTML page that is UTF-8 Encoded. I copy and paste some chineese chars...
0
7303
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,...
0
7367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7471
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...
0
5613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5028
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...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
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...

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.