G
Guest
I have a problem reading special characters in unicode files like the german ß.
I use the following code:
Dim enc As System.Text.Encoding = New System.Text.UnicodeEncoding(False,
False)
Dim a As String =
Microsoft.VisualBasic.FileIO.FileSystem.ReadAllText(Application.StartupPath &
"\Avkon.r03", enc)
Microsoft.VisualBasic.FileIO.FileSystem.WriteAllText(Application.StartupPath
& "\Avkon.r05", _
a, False, enc)
And the weird thing is that some ß are read out OK but others are simply
left out.
If I set throwOnInvalidbytes to True, then i get an error of course...
I use the following code:
Dim enc As System.Text.Encoding = New System.Text.UnicodeEncoding(False,
False)
Dim a As String =
Microsoft.VisualBasic.FileIO.FileSystem.ReadAllText(Application.StartupPath &
"\Avkon.r03", enc)
Microsoft.VisualBasic.FileIO.FileSystem.WriteAllText(Application.StartupPath
& "\Avkon.r05", _
a, False, enc)
And the weird thing is that some ß are read out OK but others are simply
left out.
If I set throwOnInvalidbytes to True, then i get an error of course...