decode method
Decodes encoded
data.
The input is decoded as if by decoder.convert
.
Implementation
String decode(List<int> bytes, {bool? allowInvalid}) {
Uint8List bytes8 = Uint8List.fromList(bytes);
if (allowInvalid ?? _allowInvalid) {
return const CP949Decoder(allowInvalid: true).convert(bytes8);
} else {
return const CP949Decoder(allowInvalid: false).convert(bytes8);
}
}