I have file with UTF-8 simbols in it.
I use some code to replace something.
And whan it saves the file utf-8 doesnt save.
It makes c ž š to ?
Can someone please help me.
I use this code:
StreamReader reader = new StreamReader("file.txt");
string content = reader.ReadToEnd();
reader.Close();
content =
StreamWriter
writer.Write(content);
writer.Close();

VulpesRank #55 · 29.2K reputationPosted Apr 18, 2011, 2:04 AM EDT
Janis Peksa145 reputationPosted Apr 18, 2011, 2:29 AM EDT
Janis Peksa145 reputationPosted Apr 18, 2011, 2:39 AM EDT