Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hey...

Hope someone knows the answer for this :)

 

I'm using this code to grab content from an URL.

The problem is, when displaying the String s all the chars æ, ø, and å is not displayed right.. They come out as ? or x or some other cryptic characters...

How can I display the characters correctly?

 

This is the code:

 

Dim wc As New WebClient

Dim strArray As Array

Dim s As String

Dim b() As Byte

 

b = wc.DownloadData(url)

s = Encoding.ASCII.GetString(b)

 

 

Would appreciate any help I can get :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...