locked
Non latin characters in asp.net get method do not appear RRS feed

  • Question

  • User-722432542 posted

    Hi everyone...

     I have been trying to read some text that I get from the url to a page. This text is in arabic and is used to pass parameters to the page being called. The problem is that asp.net does not seem to be able to recognize this text. I get garbage characters... which are useless to the customers...

    However... when I tried to do the same with php and asp 3.0 it worked fine. Has anyone faced such a problem before??? any help would be highly appreciated...

     
    Regards.... and thanks in advance
     

    Friday, August 31, 2007 7:17 AM

All replies

  • User-319574463 posted

      Look at http://www.guysmithferrier.com/ and in particular at Guy Smith's book ISBN 0321341384. The book is available online at Safari books at http://safari.oreilly.com/0321341384

    Also his presentation http://www.guysmithferrier.com/downloads/teni18n.pdf

    Which version of ASP.NET  are you working with?

    If 2.0, did you Generate Local Resources for the page?

    You may need to set the culture of the page to Arabic, prior to  reading the QueryString.

    Sunday, September 2, 2007 9:27 PM
  • User-722432542 posted

    Thanks for the answer... but I think that I did not make my problem clear...

     The issue is not in the internationalization as a whole... it is in the get method....

     

    say I were to call a page like so

    default.aspx?param=abcd

    ASP.NET would recognize the content of the param variable as "abcd". My problem is when the param variable in the get method is non latin... eg.

    default.aspx?param=أبتث

    The value is Arabic.... If I try to get the value from the Request object:

    Response.Write(Request["param"].ToString());

    then I get things like '?????' or other garbage text.

    If this were done in a Post method it works... but the Get method is killing me with this problem...

     

    Monday, September 3, 2007 12:07 AM