error formatting byte to string ?

kimrune

Member
Joined
Jun 24, 2003
Messages
7
Hey...
Hope someone knows the answer for this :)

Im using this code to grab content from an URL.
The problem is, when displaying the String s all the chars
 
What character set is the webpage encoded in?
you may want to try replacing the line

s = Encoding.ASCII.GetString(b)
with one of the following

s = Encoding.Unicode.GetString
or
s = Encoding.UTF8.GetString
 
Back
Top