Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
GeneralWebResponse/WebRequest problem Pin
Keith Iveson11-Feb-03 0:06
Keith Iveson11-Feb-03 0:06 
GeneralRe: WebResponse/WebRequest problem Pin
Chad Young11-Feb-03 2:36
Chad Young11-Feb-03 2:36 
GeneralRe: WebResponse/WebRequest problem Pin
Keith Iveson11-Feb-03 22:33
Keith Iveson11-Feb-03 22:33 
GeneralRe: WebResponse/WebRequest problem Pin
John Mautari11-Feb-03 3:10
John Mautari11-Feb-03 3:10 
GeneralRe: WebResponse/WebRequest problem Pin
Keith Iveson11-Feb-03 22:40
Keith Iveson11-Feb-03 22:40 
GeneralRe: WebResponse/WebRequest problem Pin
John Mautari12-Feb-03 0:00
John Mautari12-Feb-03 0:00 
GeneralRe: WebResponse/WebRequest problem Pin
Keith Iveson12-Feb-03 0:06
Keith Iveson12-Feb-03 0:06 
GeneralRe: WebResponse/WebRequest problem Pin
John Mautari12-Feb-03 0:21
John Mautari12-Feb-03 0:21 
It seems that you're getting an unicode encoded page from the web server. Did you tried Encoding.Convert?

<br />
using System.Text;<br />
...<br />
string pagetext = Encoding.Default.GetString(Encoding.Convert(Encoding.Unicode, Encoding.ASCII, request.DownloadData(Page)));<br />
...<br />


What language is your web page/web server? You may try to change Encoding.Unicode to other encoding like UTF8, and Encoding.ASCII to UTF8 if you're still getting wrong results. I'm using the default encoding to read web pages in english/portuguese, and the results are ok for me.

Cheers,

John
Generalunhandled exception Pin
Anonymous10-Feb-03 23:39
Anonymous10-Feb-03 23:39 
GeneralRe: unhandled exception Pin
Nick Parker11-Feb-03 3:12
protectorNick Parker11-Feb-03 3:12 
GeneralGenerate a UserControl without surface Pin
Nostra10-Feb-03 23:34
Nostra10-Feb-03 23:34 
GeneralRe: Generate a UserControl without surface Pin
Roger Alsing10-Feb-03 23:40
Roger Alsing10-Feb-03 23:40 
GeneralRe: Generate a UserControl without surface Pin
Nostra10-Feb-03 23:51
Nostra10-Feb-03 23:51 
GeneralSelecting a directory name Pin
chito10-Feb-03 22:03
chito10-Feb-03 22:03 
GeneralRe: Selecting a directory name Pin
John Mautari11-Feb-03 4:16
John Mautari11-Feb-03 4:16 
GeneralCOM+ !!! Pin
sss_dr10-Feb-03 20:49
sss_dr10-Feb-03 20:49 
GeneralDynamic Casting (Runtime) Pin
mgarwood10-Feb-03 15:09
mgarwood10-Feb-03 15:09 
GeneralRe: Dynamic Casting (Runtime) Pin
Christian Graus10-Feb-03 15:17
protectorChristian Graus10-Feb-03 15:17 
GeneralRe: Dynamic Casting (Runtime) Pin
David Stone10-Feb-03 17:55
sitebuilderDavid Stone10-Feb-03 17:55 
GeneralRe: Dynamic Casting (Runtime) Pin
Christian Graus10-Feb-03 18:05
protectorChristian Graus10-Feb-03 18:05 
GeneralRe: Dynamic Casting (Runtime) Pin
David Stone10-Feb-03 18:17
sitebuilderDavid Stone10-Feb-03 18:17 
GeneralRe: Dynamic Casting (Runtime) Pin
Christian Graus10-Feb-03 19:03
protectorChristian Graus10-Feb-03 19:03 
GeneralRe: Dynamic Casting (Runtime) Pin
David Stone10-Feb-03 19:10
sitebuilderDavid Stone10-Feb-03 19:10 
GeneralRe: Dynamic Casting (Runtime) Pin
Anonymous10-Feb-03 17:17
Anonymous10-Feb-03 17:17 
GeneralRe: Dynamic Casting (Runtime) Pin
mgarwood11-Feb-03 2:36
mgarwood11-Feb-03 2:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.