M
Marc Scirri
I am currently using a stream writer object to write a text file in C#. One of the employee names in the file has a tilde over the "E" and when written to this file characters are added at the end of the name.
The name is "FORTÉ" and here is what happens when I set the Encoding to different values:
ACSII - FORTÃ?
UNICODE - FORTÃ?
UTF8 - FORT?
UTF7 - FORT+AMk-
If you set the encoding to System.Text.Encoding.GetEncoding("windows-1252") then the text will appear as it should.
The name is "FORTÉ" and here is what happens when I set the Encoding to different values:
ACSII - FORTÃ?
UNICODE - FORTÃ?
UTF8 - FORT?
UTF7 - FORT+AMk-
If you set the encoding to System.Text.Encoding.GetEncoding("windows-1252") then the text will appear as it should.