Hi, experts
I create a file named "test.ini" with some Unicode string in it. But this file is still ANSI formated. :confused:
I dont know how to create a file formated Unicode (or UTF-8).
Show me!
Printable View
Hi, experts
I create a file named "test.ini" with some Unicode string in it. But this file is still ANSI formated. :confused:
I dont know how to create a file formated Unicode (or UTF-8).
Show me!
Just try this link
It is not useful.
I mean I want to use Unicode in INI file.
Any idea?
try this:
VB Code:
Dim fs As New System.IO.StreamWriter("C:\file.ini", False, System.Text.Encoding.UTF8) 'or System.Text.Encoding.Unicode fs.Write("hello world") fs.Close()