The content type and character encoding can be set using the HTTP header. You probably need a heading:
Content-type: application/json; charset=UTF-8
If you are serving json data with php, you can add this header with the header() command. If you are using apache, you can use the .htaccess file with these lines:
AddType application/json .json AddCharset UTF-8 .json
source share