Dart API Reference
dart:convert
Utf8Codec
Utf8Codec
class
A
Utf8Codec
encodes strings to utf-8 code units (bytes) and decodes UTF-8 code units to strings.
A
Utf8Codec
encodes strings to utf-8 code units (bytes) and decodes UTF-8 code units to strings.
Extends:
Encoding
Codec
<
String
,
List
<
int
>>
Object
Constructors
Utf8Codec
( {
bool
allowMalformed
:
false
} )
const
Instantiates a new
Utf8Codec
.
Instance Properties
name
String
read-only
encoder
Utf8Encoder
read-only
decoder
Utf8Decoder
read-only
inverted
Codec
<
List
<
int
>,
String
>
Inherited
read-only
inverted
Codec
<
List
<
int
>,
String
>
Inherited
read-only
Instance Methods
decode
(
List
<
int
>
codeUnits
, {
bool
allowMalformed
} ) →
String
Decodes the UTF-8 codeUnits (a list of unsigned 8-bit integers) to the corresponding string.
encode
Inherited
(
String
input
) →
List
<
int
>
fuse
Inherited
(
Codec
<
List
<
int
>>
other
) →
Codec
<
String
>
Fuses this with other.
decodeStream
Inherited
(
Stream
<
List
<
int
>>
byteStream
) →
Future
<
String
>
encode
Inherited
(
String
input
) →
List
<
int
>
fuse
Inherited
(
Codec
<
List
<
int
>>
other
) →
Codec
<
String
>
Fuses this with other.