Hi,
How to save text file (.txt) in Unicode
please send me small example
thanking you in advance
Have a nice day
Printable View
Hi,
How to save text file (.txt) in Unicode
please send me small example
thanking you in advance
Have a nice day
hmm have you tried the IO.StreamWriter class? doesnt that work with Unicode????
Just try something like this and see if it works:
' make sure you import System.IO first
Dim sw as streamwriter = file.createText(filePath)
if not, try this, I've never done it though, I just wrote the code, I guess it will work hehe:
VB Code:
Dim fs As New FileStream("C:\asd.txt", FileMode.CreateNew) Dim sw As New StreamWriter(fs, System.Text.Encoding.Unicode) 'sw.WriteLine fs.Close()
Hi,
The first one work Ok
thank you
Have a nice day
aha cool make sure you close the stream though: sw.close( )when you are doneQuote:
Originally posted by yulyos
Hi,
The first one work Ok
thank you
Have a nice day
you're welcome and have a nice day