Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jquery阿拉伯语字母支持_Jquery_Arabic_Letters - Fatal编程技术网

jquery阿拉伯语字母支持

jquery阿拉伯语字母支持,jquery,arabic,letters,Jquery,Arabic,Letters,此代码非常有效: Html 您可能应该在页面上指定一种编码,以避开类似这样的问题。以下是W3C关于指定字符编码的页面: 您应该可以使用UTF-8,您可以通过在标记中添加以下标记来指定UTF-8: <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 尝试使用escape(): $(“+escape”(“escape”))。插入后面(“container”); 这可能是一个字符集问题:您需要正确编码

此代码非常有效:

Html


您可能应该在页面上指定一种编码,以避开类似这样的问题。以下是W3C关于指定字符编码的页面:

您应该可以使用UTF-8,您可以通过在
标记中添加以下标记来指定UTF-8:

<META http-equiv="Content-Type" content="text/html; charset=UTF-8">

尝试使用escape():

$(“+escape”(“escape”)

)。插入后面(“container”);
这可能是一个字符集问题:您需要正确编码。良好的基础阅读:对,对你的答案发表评论的人也是绝对正确的。:)试过所有这些,这就是结果�اتصف بلااف�谢谢你,我也和科尔多瓦合作过。
$('<div id="footer"><p>جميع الحقوق محفوظه لشركة</p></div>').insertAfter('#container');
������������������������
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
$('<div id="footer"><p>'+escape('جميع الحقوق محفوظه لشركة')+'</p></div>').insertAfter('#container');