Notifications
Clear all

[Closed] How to convert Ansi to utf-8?

I tried some codes covert Ansi to utf-8,it’s works only for non-English text,but does not work for other characters like Russian
——-c: est.txt——-
to utf-8
деёж

stream = dotnetobject "System.IO.StreamReader" "C:\	est.txt"
theFileName="C:\	est2.txt"
DotNetFile = DotNetClass "System.IO.File"
readss=""
ttt=""
while (readss = stream.read()) != -1 do 
(
ttt+=(bit.intAsChar readss)
)
stream.close();
strwriterclass = dotnetclass "system.io.streamwriter"
StreamWriter = dotnetobject strwriterclass theFileName false (dotnetclass "System.Text.Encoding").UTF8 100000 
StreamWriter.WriteLine ttt
StreamWriter.Close()
StreamWriter.Dispose ()