is there any problem with this querystring!! RRS feed

  • Question

  • User1897392025 posted
    dear all im trying to send the following parameters to an asp page. when the parameter "message" holds an english value no problem appears and the code in the asp page works well but when it carries an arabic string value i get the following error: The remote server returned an error: (500) Internal Server Error. the querystring is: Sender=eiman&Message=????&Mobile_no=20777777777&Ip_Address= im sending the string to the asp page as follows: StreamWriter myWriter = null; HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url); objRequest.Method = "POST"; objRequest.ContentType = "application/x-www-form-urlencoded"; try { myWriter = new StreamWriter(objRequest.GetRequestStream()); myWriter.Write(stringtopost); myWriter.Close(); } catch (Exception e) { Response.Write(e.Message); } and i used the following tag in my ASPX page: <META http-equiv="Content-Type" content="text/html; charset=windows-1256"> and even in my web.config file: <globalization requestEncoding="windows-1256" responseEncoding="windows-1256" /> can anybody findout what's wrong with this!!!!
    Wednesday, January 12, 2005 2:54 PM

All replies

  • User1764727862 posted
    URL cannot hold other characters than standard ASCII
    Friday, February 18, 2005 2:44 PM
  • User1873438307 posted
    Set the encoding parameter to UTF-8, it'll work inshallah salam
    Saturday, February 19, 2005 8:35 AM