String encoding = "ISO-8859-7";
var encoded = await CharsetConverter.encode(encoding, line.text);
No matter the encoding used i get this error on ios.
Android works fine.
PlatformException(encoding_failed, Encoding failed, reason unknown, null, null)