エンコーディング API
エンコーディング API は、様々な文字エンコーディングのテキストを扱うメカニズムを提供します。レガシーな UTF-8 以外のエンコーディングも含みます。
この API は、TextDecoder
、TextEncoder
、TextDecoderStream
、TextEncoderStream
の 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
関連情報
- エンコーディング API のエンコーディング - テキストをデコードする際に対応していなければならないエンコーディング。
- 対応していないブラウザーでこのインターフェイスを使用することができるポリフィル。