Dart 颤振:字符串编码不正确-颤振转换中的toString;至â;

Dart 颤振:字符串编码不正确-颤振转换中的toString;至â;,dart,flutter,Dart,Flutter,我使用下面的引语 return await client.get(hostname + "/portfolio/" +email+"/"). then((response){ if (response.statusCode == 200) { var body = response.body.toString(); return body; //The body contains text that has quotes

我使用下面的引语

return  await client.get(hostname + "/portfolio/" +email+"/").
    then((response){
        if (response.statusCode == 200) {
            var body = response.body.toString();
            return body; //The body contains text that has quotes in it
        }
        else {
            return "";
        }
    });
正文中有带引号的文本。比如说有这样的东西

you"ll ever find
然而,body变量的内部有这个

youâll ever find

请注意,引号已转换为–。你知道我该如何解决这个问题吗?

这可能意味着
内容类型
标题的charcode部分丢失或与内容不匹配。@GünterZöchbauer我目前将其作为内容类型
'content-type':'application/json'
当我提出请求时,我认为
你不知道“ll
是有效的JSON。它必须是
你\“将
。并且可能是相关的。@GünterZöchbauer谢谢你的帮助!!