TextEncoderStream: encoding プロパティ

encodingTextEncoderStream インターフェイスの読み取り専用プロパティで、現在の 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 GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
encoding

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support