Passing chinese characters

Discussion in 'ASP General' started by MrMoMo, Jul 7, 2006.

  1. MrMoMo

    MrMoMo Guest

    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.
     
    MrMoMo, Jul 7, 2006
    #1
    1. Advertising

  2. "MrMoMo" <> wrote in message
    news:...
    > 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.
     
    Anthony Jones, Jul 8, 2006
    #2
    1. Advertising

  3. MrMoMo

    MrMoMo Guest

    Tried this and got error.

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


    Anthony Jones wrote:
    > "MrMoMo" <> wrote in message
    > news:...
    > > 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.
     
    MrMoMo, Jul 10, 2006
    #3
  4. MrMoMo

    MrMoMo Guest

    Tried this and got error.

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


    Anthony Jones wrote:
    > "MrMoMo" <> wrote in message
    > news:...
    > > 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.
     
    MrMoMo, Jul 10, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon Chung-Jen Chuang

    WebForm contain Chinese characters...

    Simon Chung-Jen Chuang, Jul 4, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    389
    dave wanta
    Jul 4, 2003
  2. Calvin Lai

    Chinese characters in ASP:DropDownList

    Calvin Lai, Dec 21, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    521
    Calvin Lai
    Dec 21, 2003
  3. Joseph
    Replies:
    2
    Views:
    5,600
  4. Replies:
    1
    Views:
    3,115
    Sylvain Lafontaine
    Feb 16, 2005
  5. omegaman
    Replies:
    1
    Views:
    574
    omegaman
    Sep 21, 2004
Loading...

Share This Page