I'm trying to read a text file using visual basic, but it puts "?" in words with accent and cedilla, for example, how do I read the files in ANSI format? this does not work:
Dim ArqTemp As String = File.ReadAllText(Arquivo, Encoding.UTF8)
I'm trying to read a text file using visual basic, but it puts "?" in words with accent and cedilla, for example, how do I read the files in ANSI format? this does not work:
Dim ArqTemp As String = File.ReadAllText(Arquivo, Encoding.UTF8)
Try this:
Dim ArqTemp As String = File.ReadAllText("D:\acento.txt", Encoding.Default)