Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2022年9月.
encoding は TextDecoderStream インターフェイスの読み取り専用プロパティで、このデコーダーが使用するエンコーディングアルゴリズムの名前が入った文字列を返します。
エンコーダーは コンストラクター の label 引数で設定し、既定値は utf-8 となります。
文字列で、エンコーディング形式の名前を表す小文字の ASCII 名が入ります。
取りうる値は TextDecoder.encoding に挙げられているもの(エンコーディング API のエンコーディングにあるラベル)と同じです。
TextDecoderStream から encoding の値を返します。
| Encoding # dom-textdecoder-encoding |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023年5月10日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.