A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/ja/docs/Web/API/TextDecoderStream/encoding below:

TextDecoderStream: encoding プãƒãƒ‘ティ - Web API

TextDecoderStream: encoding プロパティ

Baseline Widely available

encoding は TextDecoderStream インターフェイスの読み取り専用プロパティで、このデコーダーが使用するエンコーディングアルゴリズムの名前が入った文字列を返します。

エンコーダーは コンストラクター の label 引数で設定し、既定値は utf-8 となります。

値

文字列で、エンコーディング形式の名前を表す小文字の ASCII 名が入ります。

取りうる値は TextDecoder.encoding に挙げられているもの(エンコーディング API のエンコーディングにあるラベル)と同じです。

例

TextDecoderStream から encoding の値を返します。

stream = new TextDecoderStream();
console.log(stream.encoding); // 既定値の "utf-8" を返す
仕様書 ブラウザーの互換性

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4