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.CharSe t = "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 2055
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 -->
<configuratio n>
<system.web>
<customErrors mode="Off"/>
<globalizatio n
fileEncoding="i so-8859-1"
requestEncoding ="iso-8859-1"
responseEncodin g="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********@i01 0.com> wrote in message
news:%2******** ***********@twi ster01.bloor.is .net.cable.roge rs.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.CharSe t = "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.ne t> wrote in message
news:eJ******** ******@TK2MSFTN GP12.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/cpconencodingba setypes.asp Also, have you checked the Globalization section of the web.config? Try changing it to something more like this:
<!-- Web.Config Configuration File -->
<configuratio n> <system.web> <customErrors mode="Off"/> <globalizatio n fileEncoding="i so-8859-1" requestEncoding ="iso-8859-1" responseEncodin g="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********@i01 0.com> wrote in message news:%2******** ***********@twi ster01.bloor.is .net.cable.roge rs.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.CharSe t = "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,* such as the Dale-men make
for journeys in the wild,' said the Dwarf.
'So it is,' they answered. 'But we call it *lembas* or waybread,
and it is more strengthening than any food made by Men, and it is more
pleasant than *cram,* by all accounts.'
|
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 scope
of a lang attribute applied to a <a> element ?
<p>Francisco de Miranda's <a
href="http://www.simon-bolivar.org/bolivar/miranda_oci.html"
title="Biography of Francisco de Miranda (in Spanish)"
lang="es" >biography</a></p>
|
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, won't translate
it. When I paste the text into the code, the special characters are
missing. If they would show up there I could use the Replace Special
Characters feature to change it to the proper code, but it won't even
paste into it...
|
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 justifiable, because the
underlying stuff is technology, computing technologies, are in a laymen
sense, extremely complex.
In order to be able to type the bullet char, post it to a newsgroup,
|
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 other than English. Do VS.NET 2003 setup projects (and the MSI files they generate) support internationalization? If so, can someone point me to resources for getting this to work? Also, do VS.NET 2005 setup projects support internationalization? Thanks...
| |
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 stored procedure updates a row in
C, adds a row each in B & C. I get an integrity violation. All the foreign
keys are deferrable, and the stored procedure is called from within a
transaction with constraints deferred. (And the foreign keys do refer to...
|
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 system that meets all criterias for beeing
internationally used. I think it is not that difficult.
Main questions:
-----------------------------------------------------------
|
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 characters? I don't see how these
would be dangerous (am I missing something here?).
|
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"
Dim oXMLHttpStyle
Set oXMLHttpStyle = Server.CreateObject("MSXML2.ServerXMLHTTP")
oXMLHttpStyle.open "GET", strXSLPath, False
oXMLHttpStyle.setRequestHeader "Content-Type", "text/xml"
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |