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 2 2032
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: David Trimboli |
last post by:
In a text, I might want to include a foreign language term. In print,
this is typically shown with italics. For instance (asterisks
represent italics):
'I thought it was only a kind of *cram,*...
|
by: Andy Dingley |
last post by:
Assume an English language page, linking to a foreign history resource
that's only available in a foreign language. Any suggestions on
appropriate "best practice" markup, particularly regarding the...
|
by: gregf |
last post by:
I have a paragraph of text pasted into a word document, it's in Polish,
complete with polish characters. They show up just fine in word, but
the program I use for web page programming, HomeSite,...
|
by: Xah Lee |
last post by:
the Journey of Foreign Characters thru Internet
Xah Lee, 20051101
There's a bunch of confusions about the display of non-ascii characters
such as the bullet "•". These confusions are...
|
by: Dave |
last post by:
Hi All,
I have a VS.NET 2003 solution that uses several setup projects to package various components and applications into MSI files. I need to provide foreign language support for 5-6 languages...
|
by: Scott Ribe |
last post by:
I've got a problem which I think may be a bug in Postgres, but I wonder if
I'm missing something. Two tables, A & B have foreign key relations to each
other. A 3rd table C, inherits from A. A...
|
by: Ole |
last post by:
Goodday group,
how do i make it possible that, given the fact that all required
language packs are installed, a website can present any kind of
language. I want to build
a knowledge management...
|
by: kal stevens |
last post by:
I have been trying to write a database schema in mysql, and I cant
figure this out.
Here is a database schema
DROP DATABASE IF EXISTS d;
CREATE DATABASE d;
|
by: =?Utf-8?B?R2VyaGFyZA==?= |
last post by:
I get an error on a .net 2.0 page when I use foreign characters, such as ç or
ã. Setting validateRequest=false handles this, but is there a way to keep
validateRequest=true but allow foreign...
|
by: niklang |
last post by:
Hi everybody,
I have an ASP page that uses the MSXML2.ServerXMLHTTP object to read a stylesheet from IIS as follows:
strXSLPath = "http://localhost/ej/ejdetail.xsl.asp"
...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |