G
Guest
Hi,
When constructing StreamWriter with the following..
FileStream f = new FileStream(..);
StreamWriter s = new StreamWriter(f);
Then attempt to write out åäö letters they become garbage.
BUT
If we call StreamWriter as follows...
FileStream f = new FileStream(..);
StreamWriter s = new StreamWriter(f, System.Text.Encoding.Default);
Its ok. So why is default not the actual DEFAULT as it says on the ctor?
It seems to me either the ctor is wrong or the name .Default is misleading.
Thanks.
When constructing StreamWriter with the following..
FileStream f = new FileStream(..);
StreamWriter s = new StreamWriter(f);
Then attempt to write out åäö letters they become garbage.
BUT
If we call StreamWriter as follows...
FileStream f = new FileStream(..);
StreamWriter s = new StreamWriter(f, System.Text.Encoding.Default);
Its ok. So why is default not the actual DEFAULT as it says on the ctor?
It seems to me either the ctor is wrong or the name .Default is misleading.
Thanks.