Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
چرا برنامه من در مرورگر اینترنت اکسپلورر بصورت علامت سوال ذخیره می شود؟
Posted
Comments
Smithers-Jones 17-Aug-11 15:27pm    
You might have realised, that this is an English-speaking website. So why not use that language, if you expect to get some help?

1 solution

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:

HTML
<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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900