On this page
Utf8Decoder constructor
- {bool allowMalformed = false}
Instantiates a new Utf8Decoder.
The optional allowMalformed
argument defines how convert deals with invalid or unterminated character sequences.
If it is true
, convert replaces invalid (or unterminated) character sequences with the Unicode Replacement character U+FFFD
(�). Otherwise it throws a FormatException.
Implementation
const Utf8Decoder({bool allowMalformed = false})
: _allowMalformed = allowMalformed;
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-convert/Utf8Decoder/Utf8Decoder.html