开发者

jQuery getJSON: Danish letters

开发者 https://www.devze.com 2023-01-04 12:13 出处:网络
Im using jQuery getJSON method to get data from my database via some php code. Im开发者_如何学编程 sending arrays of data from serverside to clientside via the getJSON method.

Im using jQuery getJSON method to get data from my database via some php code.

Im开发者_如何学编程 sending arrays of data from serverside to clientside via the getJSON method.

If a word in this array contains a danish letter (ÆØÅ) getJSON just returns null. I have tried to check the words before i use the getJSON and here there is no problem.

Is there an options in getJSON where i can set charset?

Im using charset ISO-8859-1 on serverside and clientside.


I think json_encode(utf8_encode($Content)); solves your problem, no?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号