convert
convert copied to clipboard
Provide a user-accessible script to generate encodings from Unicode.org mappings.
The script would:
- Consume mappings (e.g. https://unicode.org/Public/MAPPINGS/ISO8859/8859-2.TXT)
- Generate Dart source that constructs a
CodePagerepresenting that mapping
This would allow developers to generate CodePages for encodings not supported by package:convert.
See discussion at https://github.com/dart-lang/convert/pull/93#issuecomment-1802434604
FWIW, the Python approach is to download the entire mappings directory and then choose what encodings to build: https://github.com/python/cpython/blob/6f09f69b7f85962f66d10637c3325bbb2b2d9853/Tools/unicode/Makefile#L23