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.
 
* "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.
 
Back
Top