utf8 顶级常量

Utf8Codec const utf8

默认实现Utf8Codec的实例。

该实例提供了方便访问最常见的UTF-8用法。

示例

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

实现

const Utf8Codec utf8 = Utf8Codec();