A RetroSearch Logo

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

Search Query:

Showing content from https://developer.cdn.mozilla.net/zh-CN/docs/Web/API/TextDecoderStream/encoding below:

TextDecoderStream.encoding - Web API | MDN

MDN Web Docs
  1. 面向开发者的 Web 技术
  2. Web API
  3. TextDecoderStream
  4. TextDecoderStream.encoding

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

Filter sidebar

在本文中
  1. Encoding API
  2. TextDecoderStream
  3. 构造函数
    1. TextDecoderStream()
  4. 实例属性
    1. encoding
    2. fatal
    3. ignoreBOM
    4. readable
    5. writable
  5. Encoding API 的相关页面
    1. TextDecoder
    2. TextEncoder
    3. TextEncoderStream
  6. 指南
    1. Encoding API 编码
在本文中 TextDecoderStream.encoding

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2022.

TextDecoderStream 接口的只读属性 encoding 返回一个字符串,其中包含指定的 encoder 使用的编码算法的名称。

值

一个小写的 ASCII 字符串。

示例

从一个 TextDecoderStream 返回 encoding 的值。

js

stream = new TextDecoderStream();
console.log(stream.encoding); // returns the default "utf-8"
规范 Specification Encoding
# dom-textdecoder-encoding
浏览器兼容性 Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on 2022年9月21日 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

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