problem with languges like persian and arabic |
[eluser]ahmedi[/eluser]
Hello, for my website http://www.valuatemywebsite.com i xant to add languge arabic, hebrew ,and persian but i have probelme with caracteers , i wraite my file infos_lang.php but when it loads i have noticed that i get ??? marks instead of googd caracters. I note that i set googe paramters in html, any help
[eluser]cahva[/eluser]
You might want to use something like UTF-8 as your charset in all your files and database as that will work with almost any language.
[eluser]ahmedi[/eluser]
you mean for database i will use utf8_bin , because i have multiple choice . And in html i will use only charset="utf8" ?? i ask because in mysql whihc i can use utf8_bin or utf8_unicode ?
[eluser]cahva[/eluser]
utf8_unicode_ci in mysql and html set charset to UTF-8 (not utf8). Remember to save the html documents(or view files) in utf-8 format too(without byte-order mark (BOM)), not just change the code.
[eluser]InsiteFX[/eluser]
When you create the database in MySQL using phpMyAdmin you did to go to the operations tab and change the collate to utf8_unicode.ci or else it will default to latin1. Enjoy InsiteFX
[eluser]pistolPete[/eluser]
There is a nice post about UTF-8 in CodeIgniter: http://philsturgeon.co.uk/news/2009/10/U...odeIgniter
[eluser]ahmedi[/eluser]
thanks you for your answers, i anderstand your some of your propositions but this doesn't correct my problem : in my website http://ar.valuatemywebsite.com/ i want to support arabic so, i coded a file infos_lang.php and in this file i define for example links and titles but i don't want in which format i must save the file infos_lang.php ? this is my lang file sample : $lang['infos_home'] = "حخهه"; $lang['infos_blog'] = ""; $lang['infos_contact'] = "Contact"; $lang['infos_about'] = "A propos";
[eluser]cahva[/eluser]
In that page you have still charset set to utf8. It should be utf-8. Code: <meta http-equiv="Content-Type" content="text/html; charset=utf8"> Code: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> The problem probably is not because of that but you should fix that. Just make sure everything is UTF-8. Save infos_lang.php(and other files too) as utf-8. |
Welcome Guest, Not a member yet? Register Sign In |