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.

Re: Passing chinese characters by Anthony

Anthony
Sat Jul 08 15:37:08 CDT 2006


"MrMoMo" <chairman_mowski@yahoo.com> wrote in message
news:1152301925.683356.194850@m79g2000cwm.googlegroups.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.



Re: Passing chinese characters by MrMoMo

MrMoMo
Sun Jul 09 21:00:41 CDT 2006

Tried this and got error.

But <% session.codepage = 936 %> works.


Anthony Jones wrote:
> "MrMoMo" <chairman_mowski@yahoo.com> wrote in message
> news:1152301925.683356.194850@m79g2000cwm.googlegroups.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.


Re: Passing chinese characters by MrMoMo

MrMoMo
Sun Jul 09 21:00:47 CDT 2006

Tried this and got error.

But <% session.codepage = 936 %> works.


Anthony Jones wrote:
> "MrMoMo" <chairman_mowski@yahoo.com> wrote in message
> news:1152301925.683356.194850@m79g2000cwm.googlegroups.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.