Hi Jens,
The default encoding for StreamReader/StreamWriter is UTF8. I'm guessing
the file isn't UTF8-encoded, so you need to use the overloaded constructor
and specify the proper encoding before you read/write. Try
Encoding.Default.
On Wed, 18 Oct 2006 11:12:28 +0200, Jens Jensen <jj@jensen.dkwrote:
>
I use StreamReader and StreamWriter to manipulate a text file file .
The problem is that my Norgian characters get altered.
How can i preserve the character set to ASCI ?
Thanks
JJ
--
Happy Coding!
Morten Wennevik [C# MVP]