Open insinfo opened 2 years ago
please add cp-850 and Windows1252 support
for decoding text in excel MS DOS CSV sheets
void main(List<String> args) async { final input = new File( 'C:/MyDartProjects/notifis/notifis_backend/db/planilhas/CIP 2012.csv').openRead(); final codec = const Windows1252Codec(allowInvalid: false); final stream = await input.transform(codec).transform(LineSplitter()); await for (var lineString in stream) { var rowsAsListOfValues = CsvToListConverter(fieldDelimiter: ';').convert(lineString); var lineCsv = rowsAsListOfValues.first; print(lineCsv.map((e) => '$e').join(' | ')); } exit(0); }
Thanks for the request and the example!
please add cp-850 and Windows1252 support
for decoding text in excel MS DOS CSV sheets