decode static method
Implementation
static String decode(List<int> binary, {String? charset}) {
var encoding = (charset ?? PsdkConst.defCharset).toLowerCase();
if (encoding.startsWith("gb")) {
return PsdkConst.gbkCodec.decode(binary, allowInvalid: true);
}
return utf8.decode(binary, allowMalformed: true);
}