Hello,
I have small problems while reading of text files containing
accentuated characters. (like é è à ç ...). I use this basic code :
Dim sr As StreamReader
Try
sr = New StreamReader(sFichier)
Dim sLine As String
Do
sLine = sr.ReadLine()
Console.WriteLine(sLine
Loop Until sLine Is Nothing
Catch e As Exception
Console.WriteLine(e.Message)
Finally
sr.Close()
End Try
When sLine is printed in the console (or when i have to manipulate
this string), all the accentuated characters have disappeared from
sLine. For example,
"Début de programme" is replaced by "Dbut de programme".
I have tried also FileStream with UTF8Encoding to read the text file,
but with no more success.
Any help is welcome.
Thanks,
Cedric
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*