utf8 top-level constant

Utf8Codec const utf8

An instance of the default implementation of the Utf8Codec.

This instance provides a convenient access to the most common UTF-8 use cases.

Examples:

var encoded = utf8.encode("Îñţérñåţîöñåļîžåţîờñ");
var decoded = utf8.decode([0x62, 0x6c, 0xc3, 0xa5, 0x62, 0xc3, 0xa6,
                           0x72, 0x67, 0x72, 0xc3, 0xb8, 0x64]);

Implementation

const Utf8Codec utf8 = Utf8Codec();

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