W3cubDocs

/Dart 2

latin1 top-level constant

const latin1 = const Latin1Codec()

An instance of the default implementation of the Latin1Codec.

This instance provides a convenient access to the most common ISO Latin 1 use cases.

Examples:

var encoded = latin1.encode("blåbærgrød");
var decoded = latin1.decode([0x62, 0x6c, 0xe5, 0x62, 0xe6,
                             0x72, 0x67, 0x72, 0xf8, 0x64]);

Implementation

const Latin1Codec latin1 = Latin1Codec()

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-convert/latin1-constant.html