开发者

jQuery getJSON: Danish letters

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜