Results 1 to 3 of 3

Thread: StreamReader & Unicode characters <RESOLVED>

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Location
    Salzburg
    Posts
    3

    StreamReader & Unicode characters <RESOLVED>

    Greetings Gurus!

    I'm trying to read text from a file with a StreamReader and the unicode characters are getting lost on the way. How can I get them into a String in my app?

    many thanks,
    Rach
    Last edited by rachel67; Mar 17th, 2004 at 06:48 AM.

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    first take a look at this and see if it helps
    http://vbforums.com/showthread.php?t...hlight=unicode

    second, post your code I dunno what you're doing.
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Location
    Salzburg
    Posts
    3

    Wink

    This works:

    sr = New StreamReader(infile, System.Text.Encoding.Default)

    Thanks for your help
    Rach
    Cheers
    Rachel

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