2005-02-26, 10:37 AM
anyone know how to keep the funny characters from a webstream? eg ö,ü,Ã
im using this code at the moment
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">WebRequest objRequest = WebRequest.Create(strURL);
//The WebResponse object gets the Request's response (the HTML)
WebResponse objResponse = objRequest.GetResponse();
//Now dump the contents of our HTML in the Response object to a
//Stream reader
StreamReader oSR = new StreamReader(objResponse.GetResponseStream());
//And dump the StreamReader into a string...
m_strSite = oSR.ReadToEnd();[/QUOTE]
and if i print out m_strSite all of the characters are missing.
im using this code at the moment
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">WebRequest objRequest = WebRequest.Create(strURL);
//The WebResponse object gets the Request's response (the HTML)
WebResponse objResponse = objRequest.GetResponse();
//Now dump the contents of our HTML in the Response object to a
//Stream reader
StreamReader oSR = new StreamReader(objResponse.GetResponseStream());
//And dump the StreamReader into a string...
m_strSite = oSR.ReadToEnd();[/QUOTE]
and if i print out m_strSite all of the characters are missing.