G
Guest
I think I overlook something, but when a write to a text file using a
StreamWriter, the file is written as unicode. I'm writing information that is
retrieve from nvarchar fields on SQL server. I have a problem with characters
like Ü, Ö, etc. When looking at the file they seems to be correct, but in
some applications the characters are shown as Ü or Ö. How can I write
single byte characters to the file? Just specifying new
StreamWriter(FileName, false, Encoding.ASCII) doesn't solve the problem,
because the characters are completely wrong. Please advise.
Thanks in advance.
StreamWriter, the file is written as unicode. I'm writing information that is
retrieve from nvarchar fields on SQL server. I have a problem with characters
like Ü, Ö, etc. When looking at the file they seems to be correct, but in
some applications the characters are shown as Ü or Ö. How can I write
single byte characters to the file? Just specifying new
StreamWriter(FileName, false, Encoding.ASCII) doesn't solve the problem,
because the characters are completely wrong. Please advise.
Thanks in advance.