Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 为什么我的flatter http响应json解码不返回外语字符_Flutter_Dart - Fatal编程技术网

Flutter 为什么我的flatter http响应json解码不返回外语字符

Flutter 为什么我的flatter http响应json解码不返回外语字符,flutter,dart,Flutter,Dart,我正在用flatter执行http请求。外语的响应正文已中断。 以下是颤振的结果: 其中应该是这样的: 所讨论的语言是韩语。 以下是我的http请求代码: fetchJobs() async { var response = await http.get(Global.apiurl + 'jobs/'); if (response != null && response.statusCode == 200) { print(response.bo

我正在用flatter执行http请求。外语的响应正文已中断。 以下是颤振的结果:

其中应该是这样的:

所讨论的语言是韩语。 以下是我的http请求代码:

  fetchJobs() async {
   var response = await http.get(Global.apiurl + 'jobs/');
    if (response != null && response.statusCode == 200) {
      print(response.body);
      JobResultModel jsonResponse =
          JobResultModel.fromJson(jsonDecode(response.body));
      return jsonResponse.results;
    }
 }
试一试

最终用途

jsonDecode(utf8.decode(response.bodyBytes))
而不是

jsonDecode(response.body)
试一试

最终用途

jsonDecode(utf8.decode(response.bodyBytes))
而不是

jsonDecode(response.body)