问题波斯语asp ajax? [英] problem persian language asp ajax?
问题描述
http-equiv
声明:
< 元 http-equiv =" 内容 =" 文本/html; charset = utf-8" ">/ >
所有现代Web浏览器也都支持Unicode.如果您不遵循上述编码规则,则许多Unicode字符将转换为?". (问题是那些?"字符,使用Google Translate可以理解.)
现在,问题是波斯语目前使用波斯阿拉伯语脚本,请参见 http://en.wikipedia.org/wiki/Persian_alphabet [ ^ ].该书写系统完全放在基本多语言平面中(BMP,代码点< 0x10000,其在UTF-16中仅需要16位,而在其他一些特殊书写系统中则不需要32位).而且,它非常流行,几乎可以被所有现代平台所支持.
我根本不会说波斯语或阿拉伯语,但是即使我已经用波斯语撰写(在非常了解该语言的同事的帮助下)也可以测试我的软件.我相信您也可以这样做. :-)
参见:
http://unicode.org/ [ ^ ],
http://unicode.org/faq/utf_bom.html [ 解决方案
There is no such problem. ASP.NET supports Unicode simply because all .NET strings are Unicode. Ajax is based on Javascript which also support Unicode. The only rule is: you should generate all HTML content in UTF-8 encoding (it could be with BOM or without it — does not matter), and the HTML header should have matchinghttp-equiv
declaration:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Unicode is also supported by all modern Web browsers. I you do not follow the encoding rule I described above, many Unicode characters will be converted to ''?''. (The question is about those ''?'' characters, as I could understand using Google Translate.)
Now, the question is Persian language presently uses Perso-Arabic script, see http://en.wikipedia.org/wiki/Persian_alphabet[^]. This writing system is totally placed in Base Multilingual Plane (BMP, code points < 0x10000 which requires 16 only bit in UTF-16, not 32 bits required by some more exotic writing systems). Also, it is popular enough to be supported by nearly all modern platforms.
I cannot speak Persian or Arabic at all, but even I had written in Persian (with the help of my colleague who knows the language well) to test my software. I''m sure you will be able to do so, too. :-)
See:
http://unicode.org/[^],
http://unicode.org/faq/utf_bom.html[^].
—SA
这篇关于问题波斯语asp ajax?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!