There is no built-in converter for ISO-8859-2 to dart: convert . Therefore, you must implement your own codec .
You can see the Latin1Codec code for implementation Latin2Codec. When you are ready, you will be able to:
import 'dart:convert';
final LATIN2 = new Latin2Codec();
main() {
List<int> bytesForIso_8859_2 = ...;
List<int> bytesForUTF8 = LATIN2.fuse(UTF8).encode(bytesForIso_8859_2);
}
source
share