Results 1 to 3 of 3

Thread: [SOLVED] Download webpages with strange (éçàè) characters using System.Net.WebClient

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    27

    [SOLVED] Download webpages with strange (éçàè) characters using System.Net.WebClient

    Post deleted
    Last edited by stijn.adriaensens; Jun 8th, 2008 at 09:27 AM.

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142

    Re: Download webpages with strange (éçàè) characters using System.Net.WebClient

    try toying with the System.Text.Encoding of the byte() array you receive.
    i added the exact html from your post to a local file, found that ASCII encoding returned mixed numbers & letters, UTF8 returned nothing, but Default returned the correct characters, like this ...
    VB Code:
    1. [COLOR=Blue]Dim[/COLOR] wc [COLOR=Blue]As New[/COLOR] WebClient
    2.         [COLOR=Blue]Dim[/COLOR] buffer [COLOR=Blue]As String[/COLOR] = System.Text.Encoding.Default.GetString(wc.DownloadData("c:\tmp.html"))
    3.         Console.WriteLine(buffer)
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    27

    Re: Download webpages with strange (éçàè) characters using System.Net.WebClient

    Post deleted
    Last edited by stijn.adriaensens; Jun 8th, 2008 at 09:27 AM.

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