エンコーディング API
エンコーディング API は、様々な文字エンコーディングのテキストを扱うメカニズムを提供します。レガシーな UTF-8 以外のエンコーディングも含みます。
この API は、TextDecoder
、TextEncoder
、TextDecoderStream
、TextEncoderStream
の 4 つのインターフェイスを提供します。
メモ: この機能はウェブワーカー内で利用可能です。
インターフェイス
仕様書
Specification |
---|
Encoding # interface-textdecoder |
Encoding # interface-textencoder |
Encoding # interface-textencoderstream |
Encoding # interface-textdecoderstream |
ブラウザーの互換性
api.TextDecoder
api.TextEncoder
api.TextEncoderStream
api.TextDecoderStream
関連情報
- エンコーディング API のエンコーディング - テキストをデコードする際に対応していなければならないエンコーディング。
- 対応していないブラウザーでこのインターフェイスを使用することができるポリフィル。