Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / April 2004

Tip: Looking for answers? Try searching our database.

problems with HttpWebRequest

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
z. f. - 25 Mar 2004 16:01 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.