问题波斯语asp ajax? [英] problem persian language asp ajax?

查看:73
本文介绍了问题波斯语asp ajax?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就是问题.这是ASP.仅因为所有.NET字符串都是Unicode,所以支持Unicode. Ajax基于Javascript,它也支持Unicode.唯一的规则是:您应该以UTF-8编码生成所有HTML内容(可以使用BOM或不使用BOM –都没有关系),并且HTML标头应具有匹配的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 matching http-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屋!

查看全文
相关文章
其他开发语言最新文章
热门教程
热门工具
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆