Problem POSTING hebrew letters

Discussion in 'ASP General' started by Julia, Apr 10, 2005.

  1. Julia

    Julia Guest

    Hi,although I am posting use a .NET class I would like to ask you if there
    is something special need to be done on the ASP side
    in order to be able to read Hebrew characters from the request
    when debugging fro Interdev I get gibberish


    here is my problem

    I am calling an ASP page from a NET application,and it seems that the hebrew
    characters are being lost

    here is my code:

    string url....

    string strPost....




    HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url);

    objRequest.Method = "POST";

    byte[] data = Encoding.UTF8.GetBytes(strPost);
    objRequest.ContentLength = data.Length;
    objRequest.SendChunked=true;

    objRequest.ContentType = "application/x-www-form-urlencoded";
    try

    {

    System.IO.Stream stream=objRequest.GetRequestStream();

    stream.Write(data,0,data.Length);

    stream.Close();

    }

    :

    :

    Thanks in advance
     
    Julia, Apr 10, 2005
    #1
    1. Advertisements

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. alanb
    Replies:
    2
    Views:
    784
    alanb
    Apr 23, 2004
  2. Crouchinho
    Replies:
    2
    Views:
    545
    Crouchinho
    Sep 27, 2006
  3. Replies:
    7
    Views:
    1,363
  4. Merrigan
    Replies:
    4
    Views:
    745
    Chris
    Dec 14, 2007
  5. Mr. X.

    Problem showing hebrew on my site.

    Mr. X., Sep 5, 2008, in forum: ASP .Net
    Replies:
    4
    Views:
    369
    Anthony Jones
    Sep 5, 2008
  6. Mr. X.
    Replies:
    4
    Views:
    626
    Anthony Jones
    Sep 5, 2008
  7. Venugopal
    Replies:
    11
    Views:
    2,353
    Tassilo v. Parseval
    Nov 5, 2003
  8. ofiras
    Replies:
    2
    Views:
    373
    ofiras
    Apr 2, 2009
Loading...