F
Frank M.
I am exporting data to a textfile, but I cannot get
special Scandinavian chars to be written correctly. I use
a System.IO.StreamWriter object to write. I use the
System.Text.UTF8Encoding.
Just before the StreamWriter.WriteLine(string) I use the
debugger to see the string which appears as "Præst". But
when I look at the resulting file afterwards, it has been
written as "Præst". I have also tried UTF7Encoding,
ASCIIEncoding and UnicodeEncoding, but to no avail.
Either just the special chars are are written incorrectly
or all chars are written incorrectly.
I just want to write with a standard Windows codepage.
Does anyone have a solution for this?
Regards,
Frank
special Scandinavian chars to be written correctly. I use
a System.IO.StreamWriter object to write. I use the
System.Text.UTF8Encoding.
Just before the StreamWriter.WriteLine(string) I use the
debugger to see the string which appears as "Præst". But
when I look at the resulting file afterwards, it has been
written as "Præst". I have also tried UTF7Encoding,
ASCIIEncoding and UnicodeEncoding, but to no avail.
Either just the special chars are are written incorrectly
or all chars are written incorrectly.
I just want to write with a standard Windows codepage.
Does anyone have a solution for this?
Regards,
Frank