enough_convert 1.0.0 copy "enough_convert: ^1.0.0" to clipboard
enough_convert: ^1.0.0 copied to clipboard

outdated

Support for ISO 8859 / Latin and Windows character encodings / charsets / codecs missing from `dart:convert`.

Support for character encodings, charsets and codecs missing from dart:convert.

Supports the following encodings:

  • Latin / ISO 8859 encodings:
    • Latin 1 / ISO 8859-1
    • Latin 2 / ISO 8859-2
    • Latin 3 / ISO 8859-3
    • Latin 4 / ISO 8859-4
    • Latin 5 / ISO 8859-5
    • Latin 6 / ISO 8859-6
    • Latin 7 / ISO 8859-7
    • Latin 8 / ISO 8859-8
    • Latin 9 / ISO 8859-9
    • Latin 10 / ISO 8859-10
    • Latin 11 / ISO 8859-11
    • Latin 13 / ISO 8859-13
    • Latin 14 / ISO 8859-14
    • Latin 15 / ISO 8859-15
    • Latin 16 / ISO 8859-16
  • Windows Codepage Encodings:
    • Windows-1250 / cp-1250
    • Windows-1251 / cp-1251
    • Windows-1252 / cp-1252
  • GBK (compatible with GB 2312)

Usage #

Using enough_convert is pretty straight forward:

import 'package:enough_convert/enough_convert.dart';

main() {
  final codec = const Windows1252Codec(allowInvalid: false);
  final input = 'Il faut être bête quand même.';
  final encoded = codec.encode(input);
  final decoded = codec.decode([...encoded]);
  print('${codec.name}: encode "$input" to "$encoded"');
  print('${codec.name}: decode $encoded to "$decoded"');

}

Installation #

Add this dependency your pubspec.yaml file:

dependencies:
  enough_convert: ^0.10.0

The latest version or enough_convert is enough_convert version.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

License #

enough_convert is licensed under the commercial friendly Mozilla Public License 2.0

25
likes
0
points
7.45k
downloads

Publisher

verified publisherenough.de

Weekly Downloads

Support for ISO 8859 / Latin and Windows character encodings / charsets / codecs missing from `dart:convert`.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on enough_convert