convert
convert copied to clipboard
please add cp-850 and Windows1252 support
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!