By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,795 Members | 1,251 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,795 IT Pros & Developers. It's quick & easy.

Foreign language support in ASP.Net

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.