阿拉伯字符在谷歌浏览器中单独显示 [英] arabic characters are displayed separately in google chrome
问题描述
我正在开发一个Web应用程序,我在jQuery UI组合框中显示阿拉伯文字,
它在IE和firefox中完美工作,但chrome以单独的方式显示这些字词!
你可以在组合框和下拉列表中看到两个sony的区别。
这里是我的meta < meta http-equiv =content-typecontent =text / html; charset =utf-8/>
和数据存储在sql server中使用collate
我没有;)
在jquery ui combobox javascript中您将拥有此功能
<$ p (this.value&&(!request.term || matcher.test(text)))return {
label:text.replace(
new)$ p> RegExp((!![^& ;;] +;)(?!< [^<>] *)(+ $ .ui.autocomplete.escapeRegex(request.term)+)(?! (^![^& ;;] +;),gi),< span>< / span>),
value:text ,
选项:this
};
我刚刚删除了gi,所以代码是
if(this.value&&(!request.term || matcher.test(text)))return {
label:text。替换(
new RegExp((!![^& ;;] +;)(?!< [^<>] *)(+ $ .ui.autocomplete.escapeRegex(request.term )+)(?![^ *] *)(?![^& ;;] +;),),< span>< / span>),
值:text,
选项:this
};
现在工作得很好:D
I am developing a web app where I am displaying arabic words in a jquery ui combobox, It's working perfectly in IE and firefox,but chrome is displaying the words in separate way !
you can see the difference between the two sony in the combobox and the dropdown list
here is my meta
<meta http-equiv="content-type" content="text/html";charset="utf-8" />
and The data is stored in sql server using collate
I did't ;) in the jquery ui combobox javascript you will have this function
if (this.value && (!request.term || matcher.test(text))) return {
label: text.replace(
new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + $.ui.autocomplete.escapeRegex(request.term) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<span></span>"),
value: text,
option: this
};
I've just removed the "gi" so the code is
if (this.value && (!request.term || matcher.test(text))) return {
label: text.replace(
new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + $.ui.autocomplete.escapeRegex(request.term) + ")(?![^<>]*>)(?![^&;]+;)", ""), "<span></span>"),
value: text,
option: this
};
and it's working just fine now :D
这篇关于阿拉伯字符在谷歌浏览器中单独显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!