Results 1 to 2 of 2

Thread: Unicode to string

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2009
    Posts
    435

    Unicode to string

    How would I convert a Text File that is Unicode into string (readable text)?

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

    Re: Unicode to string

    I would assume that you already know how to read a text file, e.g. with a StreamReader or with File.ReadAllText or the like. Any time you do anything that involves reading or writing text in files, you can accept the default encoding or you can specify the encoding you want. Check the documentation for any way you care to read text and you'll find an overload that lets you provide an Encoding object. You just have to provide the appropriate one, which you can normally get via a property of the Encoding class.
    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