Charset enum

How DecodedContent.text relates to DecodedContent.raw (spec/01 § Content). unknown is the only lossy value, forever; every other value, unrecognized included, is a complete decoding the scanner checked (the declared interpretation only when DecodedContent.eci lists it).

Inheritance
Available extensions

Values

utf8 → const Charset
shiftJis → const Charset
latin1 → const Charset
gb18030 → const Charset

WHATWG gb18030 decoding of raw.

eci → const Charset

raw decoded under DecodedContent.eci.

unknown → const Charset

Not a complete decoding (U+FFFD = unread bytes): use raw.

unrecognized → const Charset

A newer wire value: still a complete, checked decoding.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
isLossy → bool
True only for unknown, forever.
no setter
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

from(Object? v) → Charset

Constants

values → const List<Charset>
A constant List of the values in this enum, in order of their declaration.