bug in HttpWebRequest?

  • Thread starter Thread starter z. f.
  • Start date Start date
Z

z. f.

using HttpWebRequest to make HTTP request t web server and get resulting
HTML in the response, when the response includes hebrew characters (not
unicode) these characters are moved away after

StreamReader reader = new StreamReader ( response.GetResponseStream() );
strHTML = reader.ReadToEnd();

is there anyway to save all the data came with the response using this
object?

TIA.
 
sounds like you need to use the Encoding parameter in the StreamReader
constructor.
 
* "z. f. said:
using HttpWebRequest to make HTTP request t web server and get resulting
HTML in the response, when the response includes hebrew characters (not
unicode) these characters are moved away after

StreamReader reader = new StreamReader ( response.GetResponseStream() );
strHTML = reader.ReadToEnd();

\\\
Dim sr As New StreamReader(resonse.GetResponseStream, System.Text.Encoding.<encoding>)
///

Replace '<encoding>' with the encoding which is used to encode the
text. 'StreamReader' will use UTF-8 as default encoding.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top