通过AJAX发送阿拉伯字符在IE中不起作用 [英] Sending Arabic Characters via AJAX not working in IE
问题描述
我正在尝试使用ajax请求将表单值从javascript发送到php,该请求以XML格式返回结果.
I am trying to send a form value from javascript to php using ajax request, which returns the result in XML format.
在Mozilla FF中,一切看起来对我来说都很好,但是在IE中,当我尝试将阿拉伯字符集(UTF-8)中的值发送给我时,尽管我在php中添加了以下代码部分,但它仍然无法工作:
Everything looks working great for me in Mozilla FF, but in IE when I try to send the value in Arabic character set (UTF-8) it stops working though I added the following code part to my php:
这部分处理从脚本传递给php的值,并将编码设置为UTF-8 ...尽管在IE情况下阿拉伯语对我来说仍然不起作用,但是英语可以正常工作.
This part handles the values passed to php from the script and sets the encoding to UTF-8...though still Arabic is not working for me in IE case, but English is working fine.
有人可以帮我吗
推荐答案
您添加了元标记吗?
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
这篇关于通过AJAX发送阿拉伯字符在IE中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!