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.
pete reay - 01 Apr 2004 15:41 GMT
I think you need to pass the correct encoding to the StreamReader constructor - eg
new StreamReader(response.GetResponseStream(), Encoding.GetEncoding(<name>)
Where <name> is the name of the (Hebrew?) codepage you're using
Cheer
Pet
----- z. f. wrote: ----
using HttpWebRequest to make HTTP request t web server and get resultin
HTML in the response, when the response includes hebrew characters (no
unicode) these characters are moved away afte
StreamReader reader = new StreamReader ( response.GetResponseStream() )
strHTML = reader.ReadToEnd()
is there anyway to save all the data came with the response using thi
object
TIA