エンコーディング 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
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TextDecoder | ||||||||||||||
TextDecoder() constructor | ||||||||||||||
decode | ||||||||||||||
encoding | ||||||||||||||
fatal | ||||||||||||||
ignoreBOM | ||||||||||||||
Available in workers |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- See implementation notes.
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
api.TextEncoder
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TextEncoder | ||||||||||||||
TextEncoder() constructor | ||||||||||||||
encode | ||||||||||||||
encodeInto | ||||||||||||||
encoding | ||||||||||||||
Available in workers |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
api.TextEncoderStream
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TextEncoderStream | ||||||||||||||
TextEncoderStream() constructor | ||||||||||||||
encoding | ||||||||||||||
readable | ||||||||||||||
writable |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
api.TextDecoderStream
Report problems with this compatibility data on GitHubLegend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
- エンコーディング API のエンコーディング - テキストをデコードする際に対応していなければならないエンコーディング。
- 対応していないブラウザーでこのインターフェイスを使用することができるポリフィル。