Results 1 to 7 of 7

Thread: [RESOLVED] [2008] How can i make my Program support some letters?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    202

    Resolved [RESOLVED] [2008] How can i make my Program support some letters?

    Well i have a Program that filters out Text from a site but when Characters like:

    ü â ä ö are there it makes them to: ?

    How can i make them show right in the Program?

    Sorry for my bad English im from Germany

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2008] How can i make my Program support some letters?

    How are you "filtering out text" from the site? Usually you just have to set the proper encoding, preferably UTF-8.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3
    Frenzied Member
    Join Date
    Mar 2005
    Location
    Sector 001
    Posts
    1,577

    Re: [2008] How can i make my Program support some letters?

    Hm, I'm from Germany too.
    Encoding issues can be tough...you have to match the encoding from the site to the way vb displays the string.
    VB 2005, Win Xp Pro sp2

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    202

    Re: [2008] How can i make my Program support some letters?

    Quote Originally Posted by Atheist
    How are you "filtering out text" from the site? Usually you just have to set the proper encoding, preferably UTF-8.

    How should I ? I downlod the Site and filter out the Entries with RegEx.

    So i do it with RegEx.

  5. #5
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2008] How can i make my Program support some letters?

    You can not download data with RegEx.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    202

    Re: [2008] How can i make my Program support some letters?

    I Download Data with a WebClient

    Then i filter out Entries out of the HTML File that was downloaded with RegEx.

    But then signs like üäö are ?

  7. #7
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2008] How can i make my Program support some letters?

    Try setting the encoding to UTF8.
    VB.NET Code:
    1. Dim myWebClient As new System.Net.WebClient()
    2.         myWebClient.Encoding = System.Text.Encoding.UTF8
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

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