0

Here's my current code:

Dim webber As New Net.WebClient

**webber.Encoding = System.Text.Encoding.UTF8**

htmlsource = webber.DownloadString(URL)

How do I change that part so that I can use 949, the code for Korean encode?

2 Answers 2

2

Use:

webber.Encoding = Encoding.GetEncoding(949)

(I'm surprised WebClient doesn't use the headers in the response to determine which encoding to use. It's possible that it does, and that the encoding specified here is only used if the response doesn't specify anything, of course.)

Sign up to request clarification or add additional context in comments.

Comments

1

Hello try this for korean

webber.Encoding = Encoding.GetEncoding(949);

949 is a Korean  code page

Also refer MS Kink

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.