473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Codepage problem

I saved my aspx with Encoding (Chinese Tranditional (Big5) - Codepage 950)
and I had set codepage="950" in Page tag. The content rendered incorrect
(all text changed to symbols), but some content those read from xml file
works correct.

How can I fix this problem?
Thanks
Nov 19 '05 #1
4 3141
Do you use a "Web.config" file? Try to set "requestEncoding" and
"responseEncoding" in that file.

Azat

"Daatmor" <mc********@yahoo.com.hk> schrieb im Newsbeitrag
news:Os**************@tk2msftngp13.phx.gbl...
I saved my aspx with Encoding (Chinese Tranditional (Big5) - Codepage 950)
and I had set codepage="950" in Page tag. The content rendered incorrect
(all text changed to symbols), but some content those read from xml file
works correct.

How can I fix this problem?
Thanks

Nov 19 '05 #2
Hi Azat,

Thanks for your help, its works.
But my site contains english pages and chinese pages. If set
"requestEncoding" and "responseEncoding" in "Web.config", all page will
encoded with Chinese Tranditional (Big5). English viewers will show
"download IE chinese language pack" dialog box when they browsing english
pages.
I tried set 'ResponseEncoding="Big5"' in each chinese page's @page tag,
but chinese characters cannot works correct. In @page tag, "requestEncoding"
property cannot be specified. Where can I set "requestEncoding" for certain
page? or has any other solutions?
Thanks

Hugo
"Azat" <az****@web.de> wrote in message
news:#m**************@TK2MSFTNGP12.phx.gbl...
Do you use a "Web.config" file? Try to set "requestEncoding" and
"responseEncoding" in that file.

Azat

"Daatmor" <mc********@yahoo.com.hk> schrieb im Newsbeitrag
news:Os**************@tk2msftngp13.phx.gbl...
I saved my aspx with Encoding (Chinese Tranditional (Big5) - Codepage 950) and I had set codepage="950" in Page tag. The content rendered incorrect
(all text changed to symbols), but some content those read from xml file
works correct.

How can I fix this problem?
Thanks


Nov 19 '05 #3
Dear Azat

I found solution:
I can add a new "Web.config" in my chinese pages folder. It just
contains following codes:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<globalization requestEncoding="Big5" responseEncoding="Big5"
fileEncoding="Big5" />
</system.web>
</configuration>

But if chinese pages and english pages stored in same folder, above
method cannot work.

Regards,
Hugo

"Daatmor" <mc********@yahoo.com.hk> wrote in message
news:e0**************@TK2MSFTNGP09.phx.gbl...
Hi Azat,

Thanks for your help, its works.
But my site contains english pages and chinese pages. If set
"requestEncoding" and "responseEncoding" in "Web.config", all page will
encoded with Chinese Tranditional (Big5). English viewers will show
"download IE chinese language pack" dialog box when they browsing english
pages.
I tried set 'ResponseEncoding="Big5"' in each chinese page's @page tag, but chinese characters cannot works correct. In @page tag, "requestEncoding" property cannot be specified. Where can I set "requestEncoding" for certain page? or has any other solutions?
Thanks

Hugo
"Azat" <az****@web.de> wrote in message
news:#m**************@TK2MSFTNGP12.phx.gbl...
Do you use a "Web.config" file? Try to set "requestEncoding" and
"responseEncoding" in that file.

Azat

"Daatmor" <mc********@yahoo.com.hk> schrieb im Newsbeitrag
news:Os**************@tk2msftngp13.phx.gbl...
I saved my aspx with Encoding (Chinese Tranditional (Big5) - Codepage 950) and I had set codepage="950" in Page tag. The content rendered incorrect (all text changed to symbols), but some content those read from xml file works correct.

How can I fix this problem?
Thanks



Nov 19 '05 #4
Daatmor wrote:
Dear Azat

I found solution:
I can add a new "Web.config" in my chinese pages folder. It just
contains following codes:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<globalization requestEncoding="Big5" responseEncoding="Big5"
fileEncoding="Big5" />
</system.web>
</configuration>

But if chinese pages and english pages stored in same folder, above
method cannot work.


Why not use a code set that covers both Latin and Chinese characters,
i.e. Unicode? You can use UTF-16 or UTF-8 as request and response
encoding here for example.

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #5

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

Similar topics

4
by: Steve Kushubar | last post by:
I originally posted this in the internet.iis group and it was suggested that I repost it here. I am trying to use the Response.CodePage method on a Windows 2000 IIS Server. The MSDN clearly...
10
by: Christopher H. Laco | last post by:
Long story longer. I need to get web user input into a backend system that a) only grocks single byte encoding, b) expectes the data transer to be 1 bytes = 1 character, and c) uses the HP Roman-6...
8
by: Kim Bundgaard | last post by:
Hi Anyone know where I can look for problem with codepage conversion between DB2 UDB Connect EE V8.2 (fixpak 3) and DB2 UDB z/OS V7. With DB2 UDB Connect EE V7.2 (fixpak 7) i get Ebcdic X'5A'...
1
by: Vladimir Khvostov | last post by:
Hi, We have some DB2 table on the host that has varchar(3200) columns that are used to store binary data (I know that "varchar(3200) for bit data" should have been used, by modifying host table is...
4
by: Ram | last post by:
Dear All, Good Day I am trying to convert a file which is generated on AS400 with codepage 00420 (arabic & English data combination) with no success. But using the same code( and changing 20420...
2
by: Mike Prager | last post by:
Hi, I have written a Hotmail type application where users choose their language preference which is used to set the culture and hence the correct resource files for strings, formatting etc. I...
0
by: asklucas | last post by:
Hi there, I got an MS Access DB, which is causing problems when the client PC is running using a Traditional Chinese codepage. The DB was probably created with Access 97, Western European...
10
by: eyal.herlin | last post by:
hi, i set a cookie to hold a utf-8 string. either by the server or by the client. it doesn't matter. when i try to read this cookie using Request.Cookies("my_utf8_cookie") on iis 5.0 i get...
6
by: msdnuniv | last post by:
Hello everybody, since days i try to convert Unicode-Strings in VB.NET to ANSI which should be processable in VB6 and converted to unicode again. It should be possible with any codepage, e.g....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.