locked
Retrieving chinese characters stored in a cookie RRS feed

  • Question

  • Hi,

    I have a text box which needs to get the data from the cookie. Characters in the cookie are in chinese (), however when i try to retreive it and assign it to the text box, then it gives me the garbage characters. Could anyone please help me to resolve this issue.

    I have checked the cookie value and its is storing the chinese character (),

    I have already tried using system.web.httputility.htmldecode with not success. I also have <meta> tag added with the character set set to UTF-8.

    Please guide me to resolve this issue 

    P.S:- The hardcoded text for other labels and buttons are displaying chinese characters

    Thursday, December 30, 2010 6:18 AM

Answers

  • Hi AmitArabatti,

    It is a pity that your issue is off-topic here in this subforum.
    Please try to use "gb2312" encoding to have a test.
    Or please post out your critical code snippets here for friends' convenient to help you.

    If friends here can't do good to your issue. I will give you a further suggestion for better support.

    Sincerely,
    Leo Liu
    Leo Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Leo Liu - MSFT Tuesday, January 4, 2011 5:19 AM
    • Marked as answer by Leo Liu - MSFT Wednesday, January 5, 2011 12:10 PM
    Friday, December 31, 2010 9:27 AM

All replies

  • Hi,

    Would you please post your code?

    Thank you!


    MCITP: Business Intelligence Developer 2008, MCITP: Database Developer 2008, MCITP: Database Administrator 2008, MCPD: Enterprise Application Developer 3.5, MCTS: SharePoint 2010, Configuration Charter Member, MCTS: .NET Framework 3.5, Windows Workflow Foundation Applications, MCTS: Microsoft Windows Vista: Configuration, Microsoft® Certified Trainer 2010
    Thursday, December 30, 2010 8:50 AM
  • Hi AmitArabatti,

    It is a pity that your issue is off-topic here in this subforum.
    Please try to use "gb2312" encoding to have a test.
    Or please post out your critical code snippets here for friends' convenient to help you.

    If friends here can't do good to your issue. I will give you a further suggestion for better support.

    Sincerely,
    Leo Liu
    Leo Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Leo Liu - MSFT Tuesday, January 4, 2011 5:19 AM
    • Marked as answer by Leo Liu - MSFT Wednesday, January 5, 2011 12:10 PM
    Friday, December 31, 2010 9:27 AM