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

Passing chinese characters

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


P: n/a

"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

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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.