解决中文乱码的convert方法没有了,现在需要使用哪个方法呀
来源:9-3 异步:Future与FutureBuilder实用技巧【好好学,实战经常用】

段誉orz
2021-04-28
final result = json.decode(utf8codec.convert(response.body));
写回答
1回答
-
convert是有的,可参照下面代码检查下你的代码实现:
import 'dart:convert'; Utf8Decoder utf8decoder = Utf8Decoder(); // fix 中文乱码 var result = json.decode(utf8decoder.convert(response.bodyBytes));
012021-04-30
相似问题