how can i add arabic language with php
i want to create an interface of website in Arabic language....how can i do that...do i need any plugin to be already ins开发者_运维技巧talled on my hosting server or mylocalhost how can i do that...please let me know in detail...
The key for you is Unicode -- it's less an issue of the hosting server, and more an issue of you making sure that your web pages have proper content encoding headers. PHP has had historic issue with internationalization and Unicode; you might want to read a few references before starting your development:
- The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!);
- Unicode for the working PHP programmer;
- Nick Nettleton's PHP UTF-8 Cheat Sheet;
- the PHP unicode manual pages.
You don't need anything extra to display text, just support for Unicode which is built into modern browsers.
http://en.wikipedia.org/wiki/Unicode_and_HTML
Make sure that you save all your files as UTF-8 without BOM (or any Arabic-capable codepage). Make sure your Web service emits the right charset in Content-type (or put a meta tag in each page). Make sure your IDE is fine with UTF-8 files.
BOMs in UTF-8 PHP files, in particular, are pure evil.
The rest depends on your programming environment. Can't give more details.
精彩评论