angular.js $http.get how to force UTF-8 encoding

前端 未结 2 1877
鱼传尺愫
鱼传尺愫 2020-12-17 01:06

I\'ve to read JSON file encoded with utf-8 charset
I use this syntax:

$http.get(\'resources/negozi.json\',
    {header : {\'Content-Type\' : \'applicatio         


        
2条回答
  •  情话喂你
    2020-12-17 01:36

    If you are using php as server-side programming language you can try to set the internal encoding to utf-8 with mb_internal_encoding("utf-8").

提交回复
热议问题