Skip to content

InvalidEncoding

1 min read

Import: import system.text;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

InvalidEncoding

Policy for malformed or truncated UTF-8 input.

public enum InvalidEncoding

Strict

Returns a parse error and permanently fails the decoder on invalid input.

Strict

Replace

Emits U+FFFD replacement characters for invalid input and continues decoding.

Replace