Flutter,使用charset_converter包更改字符代码集

b5lpy0ml  于 2023-01-09  发布在  Flutter
关注(0)|答案(1)|浏览(106)

我想将Big 5中的json转换为UTF-8。我尝试使用charset_converter包中的示例,但出现编译错误:Uint 8List不是类型。

Uint8List encoded = await CharsetConverter.encode("Big5", name);
  String decoded = await CharsetConverter.decode("UTF-8",
      encoded);
cbwuti44

cbwuti441#

  • big5插件已经很长时间没有维护了,所以我重新更新了这个插件
  • see<flutter_big5>

相关问题