エンコーディング API

エンコーディング API は、様々な文字エンコーディングのテキストを扱うメカニズムを提供します。レガシーな UTF-8 以外のエンコーディングも含みます。

この API は、TextDecoderTextEncoderTextDecoderStreamTextEncoderStream の 4 つのインターフェイスを提供します。

注: この機能は Web Worker 内で利用可能です。

インターフェイス

仕様書

Specification
Encoding Standard
# interface-textdecoder
Encoding Standard
# interface-textencoder
Encoding Standard
# interface-textencoderstream
Encoding Standard
# interface-textdecoderstream

ブラウザーの互換性

api.TextDecoder

BCD tables only load in the browser

api.TextEncoder

BCD tables only load in the browser

api.TextEncoderStream

BCD tables only load in the browser

api.TextDecoderStream

BCD tables only load in the browser

関連情報