Hi guys. I have to edit a csv file, the problem is that my special chars like ó ã ç gets screwed up.
Heres is a peice of my code:
static void ReadFromFile(){
StreamReader SR = new StreamReader("c:\\Users\\Levy\\Documents\\Vale\\Base\\Desknote.csv", Encoding.Default);
StreamWriter SW = new StreamWriter("c:\\Users\\Levy\\Documents\\Vale\\Base\\Desknote_Ed.csv", true, System.Text.Encoding.GetEncoding("Windows-1252"));
string S;
char C='a';
int i=0;
S=SR.ReadLine();
SW.Write(S);
}
UPDATING:
Well im able to read the chars by using Encoding.Default on the Stramreader Object. (i can display them on console)
Ive tryed with ISO 8859-1 and CP-1252 on the writer but my output is still messed up.
Thanks all