I'm trying to read strings from a .csv file through the FileHelperEngine library in this way:
UTF8Encoding utf8 = new UTF8Encoding(); var engine = new FileHelperEngine(typeof(TipologieMetadatiCsv), utf8);
and I've issues with accented chars, like:
Sofà -> "Sof?"
How this could be solved ?
Solved in this way:
TextReader textReader = new StreamReader(stream, Encoding.GetEncoding("iso-8859-1")); var engine = new FileHelperEngine(typeof(TipologieMetadatiCsv), Encoding.GetEncoding("iso-8859-1"));
1.4m articles
1.4m replys
5 comments
57.0k users