Results 1 to 2 of 2

Thread: Using Webclient to read chinese characters

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2007
    Posts
    544

    Using Webclient to read chinese characters

    The resulting effect is that the characters are garbled.

    I've been looking around and there doesn't seem to be any solution.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Using Webclient to read chinese characters

    The issue is simply one of text encoding, just as it would be if you were reading the same data from a local file. If you assign an appropriate Encoding object to the Encoding property of the WebClient then it will encode the binary data that it downloaded correctly when converting it to text. You will have to use the same encoding that the server used to in the first place. If you don't know what that is then you will have to experiment a bit.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width