468,284 Members | 1,609 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,284 developers. It's quick & easy.

Foreign language support in ASP.Net

Hi all,

I have a serious problem with the application I am developing. The language
I used are mainly English, and some Chinese. (But I guess this problem
happens accross different language).

In web.config, my Request/Response encoding are set to "iso8859-1" (which I
have no idea what is shd be at all).
For each request, I handled and added Response.CharSet = "big5" in the
Global.aspx.cs.
In each of the aspx WebForm files, there are sometimes Chinese character in
it.
My database is filled with Data in Chinese Language and the platform is
Win2k.

My poblem now is, if I just load the data and display it in a grid or just
retrieve fields from dataset and display them as string, there is no problem
of displaying correctly.

However, if I use DropDownList, TextArea, or have Chinese characters inside
a aspx.cs file and trying to display them on aspx file, those characters
will be totally screwed (some garbage computer letters).

Does anyone of you know how to proper set the language encoding? I really
have no idea after searching online. Thanks in advance for your help.

Calvin
Nov 18 '05 #1
2 1864
Have you tried setting it to use unicode?
Here's more info on the subject:
http://msdn.microsoft.com/library/de...gbasetypes.asp

Also, have you checked the Globalization section of the web.config?
Try changing it to something more like this:

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
<globalization
fileEncoding="iso-8859-1"
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
/>
</system.web>
</configuration>

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Calvin Lai" <ca********@i010.com> wrote in message
news:%2*******************@twister01.bloor.is.net. cable.rogers.com...
Hi all,

I have a serious problem with the application I am developing. The language I used are mainly English, and some Chinese. (But I guess this problem
happens accross different language).

In web.config, my Request/Response encoding are set to "iso8859-1" (which I have no idea what is shd be at all).
For each request, I handled and added Response.CharSet = "big5" in the
Global.aspx.cs.
In each of the aspx WebForm files, there are sometimes Chinese character in it.
My database is filled with Data in Chinese Language and the platform is
Win2k.

My poblem now is, if I just load the data and display it in a grid or just
retrieve fields from dataset and display them as string, there is no problem of displaying correctly.

However, if I use DropDownList, TextArea, or have Chinese characters inside a aspx.cs file and trying to display them on aspx file, those characters
will be totally screwed (some garbage computer letters).

Does anyone of you know how to proper set the language encoding? I really
have no idea after searching online. Thanks in advance for your help.

Calvin

Nov 18 '05 #2
Hi,

The current web.config is the same settings as suggested. But it still
doesn't work. Any idea? Thanks.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
Have you tried setting it to use unicode?
Here's more info on the subject:
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconencodingbasetypes.asp
Also, have you checked the Globalization section of the web.config?
Try changing it to something more like this:

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
<globalization
fileEncoding="iso-8859-1"
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
/>
</system.web>
</configuration>

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Calvin Lai" <ca********@i010.com> wrote in message
news:%2*******************@twister01.bloor.is.net. cable.rogers.com...
Hi all,

I have a serious problem with the application I am developing. The language
I used are mainly English, and some Chinese. (But I guess this problem
happens accross different language).

In web.config, my Request/Response encoding are set to "iso8859-1" (which I
have no idea what is shd be at all).
For each request, I handled and added Response.CharSet = "big5" in the
Global.aspx.cs.
In each of the aspx WebForm files, there are sometimes Chinese character

in
it.
My database is filled with Data in Chinese Language and the platform is
Win2k.

My poblem now is, if I just load the data and display it in a grid or

just retrieve fields from dataset and display them as string, there is no

problem
of displaying correctly.

However, if I use DropDownList, TextArea, or have Chinese characters

inside
a aspx.cs file and trying to display them on aspx file, those characters
will be totally screwed (some garbage computer letters).

Does anyone of you know how to proper set the language encoding? I really have no idea after searching online. Thanks in advance for your help.

Calvin


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

43 posts views Thread by David Trimboli | last post: by
47 posts views Thread by Andy Dingley | last post: by
1 post views Thread by Ole | last post: by
2 posts views Thread by kal stevens | last post: by
3 posts views Thread by =?Utf-8?B?R2VyaGFyZA==?= | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.