I need to parse a csv file I got, I realized when parsing it all the characters were corrupted After some investigating it seems the file is encoded with cp1255, I would rather avoid having to create my own encoder, Is there a different way to read the file with c# or convert it to utf8?
Edit:
private static Encoding encoding = Encoding.UTF8;
....
var textReader = new StreamReader(reportCsv, encoding);
var csv = new CsvReader(textReader, new Configuration { BadDataFound = null, Delimiter = delimiter, Encoding = encoding });
I have tried all the encoding c# found me and nothing.. after using tools to detect what encoding was used in that file I found it was encoded in cp1255.. And I don't think I have a decoder/encoder for that.
I'm using CsvHelper lib to read the CSV file But I believe the problem starts with the StreamReader.