Table of Contents

PercentDecodingOptions Enum

Definition

Namespace
Bodu.Text.Encoding
Assembly
Bodu.Text.Encoding.dll
Package
Bodu.Text.Encoding 1.0.0
Source
PercentDecodingOptions.cs

Specifies relaxations applied by the PercentEncoding decoder over its strict RFC 3986 default.

[Flags]
public enum PercentDecodingOptions : byte
Attributes
Extension Methods

Fields

None = 0

Strict decoding: a % must be followed by exactly two hexadecimal digits, otherwise the input is rejected.

AllowInvalidPercentLiterals = 1

Copies a malformed percent sequence (a % not followed by two hexadecimal digits) literally as its ASCII bytes instead of rejecting it, matching WHATWG-style lenient percent-decoding. Valid escapes are unaffected.

Applies to

ProductVersions
.NET8, 10