473,385 Members | 2,014 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,385 software developers and data experts.

Passing chinese characters

How do I Pass chinese characters, charset GB2312 and BIG5, from Form to
SQL using asp?

My field in SQL is already set to nvarchar.

Any help is much appreciated.

Thanks.

Jul 7 '06 #1
3 2329

"MrMoMo" <ch*************@yahoo.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
How do I Pass chinese characters, charset GB2312 and BIG5, from Form to
SQL using asp?

My field in SQL is already set to nvarchar.

Any help is much appreciated.

Thanks.
The page to which the form posts needs to have it's codepage set
appropriately so:-

<%@ codepage="950" %>
<%@ codepage="936" %>

Also set the form to use method="POST"

Now the unicode values retrieved for the Form values will be encoded
correctly.

Anthony.
Jul 8 '06 #2
Tried this and got error.

But <% session.codepage = 936 %works.
Anthony Jones wrote:
"MrMoMo" <ch*************@yahoo.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
How do I Pass chinese characters, charset GB2312 and BIG5, from Form to
SQL using asp?

My field in SQL is already set to nvarchar.

Any help is much appreciated.

Thanks.

The page to which the form posts needs to have it's codepage set
appropriately so:-

<%@ codepage="950" %>
<%@ codepage="936" %>

Also set the form to use method="POST"

Now the unicode values retrieved for the Form values will be encoded
correctly.

Anthony.
Jul 10 '06 #3
Tried this and got error.

But <% session.codepage = 936 %works.
Anthony Jones wrote:
"MrMoMo" <ch*************@yahoo.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
How do I Pass chinese characters, charset GB2312 and BIG5, from Form to
SQL using asp?

My field in SQL is already set to nvarchar.

Any help is much appreciated.

Thanks.

The page to which the form posts needs to have it's codepage set
appropriately so:-

<%@ codepage="950" %>
<%@ codepage="936" %>

Also set the form to use method="POST"

Now the unicode values retrieved for the Form values will be encoded
correctly.

Anthony.
Jul 10 '06 #4

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

Similar topics

1
by: Jeff | last post by:
Having a problem displaying both german and chinese characters from a UTF-8 database on the same *.jsp page. Can make Chinese characters appear correctly by including the following lines: <%@...
6
by: Zhang Weiwu | last post by:
Hello. I am working with a php software project, in it (www.egroupware.org) Chinese simplified locate is "zh" while Traditional Chinese "tw". I wish to send correct language attribute in http...
8
by: Agnes | last post by:
In my .net ,i need to generate an xml file , however, user may input a chinese character, Then , the xml will got something unknow characters. the following is my code, Does anyone know how to...
8
by: pabv | last post by:
Hello all, I am having a few issues with encoding to chinese characters and perhaps someone might be able to assist. At the moment I am only able to see chinese characters when displayed as...
4
by: K | last post by:
I've an XML file in UTF-8. It contains some chinese characters ( both simplified chinese and traditional chinese). In loading the XML file with MSXML parser, I used the below code to retrieve...
0
by: st.frey | last post by:
I've got a problem with importing chinese characters into a mysql-table and have read several mailings but didn't find a solution. i have a utf-8 text file that contains chinese characters. the...
2
by: baskar1900 | last post by:
Sir, we are trying to pass chinese character through querystring in ASP and we are using chinese windows 2003 server Operating System. when we tried to retrieve using Request.QueryString () we...
5
by: Figmo | last post by:
I'm having a problem working with foreign characters (well....foreign to me anyway) I have a textbox control on a form. The font is set to MS Arial Unicode. If I use the Chinese input method...
2
by: Wassy | last post by:
Hi, i have a website which contains both chinese and english content which is stored in a database. Each record in the dB has an english and Chinese field. If a user enters a search string i have...
2
by: Flying Kite | last post by:
Hi All, I want to know how to print chinese characters on Zebra Printer, following code working fine with English string, but it's not working for Chinese string. It shows ASCII characters instead...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.