TextEncoderStream: encoding プロパティ
encoding
は TextEncoderStream
インターフェイスの読み取り専用プロパティで、現在の TextEncoderStream
オブジェクトが使用するエンコーディングアルゴリズムの名前が入った文字列を返します。
値
utf-8
のエンコードされたデータが入った文字列です。
例
以下の例は、TextEncoderStream
オブジェクトが encoding
を返す方法を示しています。
js
stream = new TextEncoderStream();
console.log(stream.encoding);
仕様書
Specification |
---|
Encoding # dom-textencoder-encoding |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
encoding |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
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.