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/TextEncoderStream/TextEncoderStream below:

TextEncoderStream: TextEncoderStream() コンストラクター - Web API

TextEncoderStream: TextEncoderStream() コンストラクター

Baseline Widely available

TextEncoderStream() コンストラクター、文字列のストリームを UTF-8 エンコーディングを使用してバイト列に変換するために使用する、新しい TextEncoderStream オブジェクトを作成します。

構文 引数

なし。

例

この例では、TextEncoderStream を作成してテキストのストリームのアップロードに使用しています。

const body = textStream.pipeThrough(new TextEncoderStream());
fetch("/dest", {
  method: "POST",
  body,
  headers: { "Content-Type": "text/plain; charset=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