与法国编码Ajax响应 [英] Ajax response with french encoding

查看:75
本文介绍了与法国编码Ajax响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时有可能使在法国编码字符JSON响应? IE6从来没有调用回调函数来处理JSON响应。

Is it possible to make json response with characters in french encoding? IE6 never invoke callback function to handle json response.

推荐答案

是的,它是可能的。否则,很多网站是行不通的! :)

Yes it is possible. Otherwise a lot of site wouldn't work! :)

只要确保服务器将数据发送回UTF-8编码。

Just make sure the server send the data back in UTF-8 encoding.

例如在Java中的:

response.setContentType("application/json;charset=UTF-8");

这篇关于与法国编码Ajax响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆