エンコーディング API
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年1月.
エンコーディング API は、様々な文字エンコーディングのテキストを扱うメカニズムを提供します。レガシーな UTF-8 以外のエンコーディングも含みます。
この API は、TextDecoder、TextEncoder、TextDecoderStream、TextEncoderStream の 4 つのインターフェイスを提供します。
メモ: この機能はウェブワーカー内で利用可能です。
インターフェイス
仕様書
| Specification |
|---|
| Encoding> |
ブラウザーの互換性
>api.TextDecoder
Enable JavaScript to view this browser compatibility table.
api.TextEncoder
Enable JavaScript to view this browser compatibility table.
api.TextEncoderStream
Enable JavaScript to view this browser compatibility table.
api.TextDecoderStream
Enable JavaScript to view this browser compatibility table.
関連情報
- エンコーディング API のエンコーディング - テキストをデコードする際に対応していなければならないエンコーディング。
- 対応していないブラウザーでこのインターフェイスを使用することができるポリフィル。