Read a .txt file in ANSI VB.net

-1

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)
    
asked by anonymous 31.07.2015 / 16:57

1 answer

1

Try this:

 Dim ArqTemp As String = File.ReadAllText("D:\acento.txt", Encoding.Default)

    
27.09.2015 / 16:01