System.Text.Encodings.Web 命名空间

包含表示 Web 编码器的基类;表示 HTML、JavaScript 和 Url 字符编码的子类;和表示仅允许对某些字符、字符范围或码位进行编码的筛选器的类。 Contains a base class that represent a web encoder; subclasses that represent HTML, JavaScript, and Url character encoding; and a class that represents a filter for allowing only certain characters, character ranges, or code points to be encoded.

HtmlEncoder

表示 HTML 字符编码。Represents an HTML character encoding.

JavaScriptEncoder

表示 JavaScript 字符编码。Represents a JavaScript character encoding.

TextEncoder

Web 编码器的基类。The base class of web encoders.

TextEncoderSettings

表示仅允许特定 Unicode 码位的筛选器。Represents a filter that allows only certain Unicode code points.

UrlEncoder

表示 URL 字符编码。Represents a URL character encoding.