Results 1 to 4 of 4

Thread: Unicode file Problem

  1. #1

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    Unicode file Problem

    Hi, experts

    I create a file named "test.ini" with some Unicode string in it. But this file is still ANSI formated.

    I dont know how to create a file formated Unicode (or UTF-8).

    Show me!
    !Have fun!

  2. #2

  3. #3

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    Re: Unicode file Problem

    It is not useful.

    I mean I want to use Unicode in INI file.

    Any idea?
    !Have fun!

  4. #4
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    Re: Unicode file Problem

    try this:
    VB Code:
    1. Dim fs As New System.IO.StreamWriter("C:\file.ini", False, System.Text.Encoding.UTF8) 'or System.Text.Encoding.Unicode
    2. fs.Write("hello world")
    3. fs.Close()

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