Page 1 of 1

Arabic website

Posted: Mon Jan 11, 2010 10:35 pm
by ibndiyaa
Greetings again,

I am wondering if there is any way to change the keyboard which PHP uses for a foreign language, such as Arabic? I have changed the default_charset value to iso-8859-6, so I can display Arabic characters, but they are not in the same sequence on the keyboard as Windows.

Thank you.

Sohail.

Re: Arabic website

Posted: Mon Jan 11, 2010 10:39 pm
by ibndiyaa
Actually, just figured out that I had to change the page encoding to Arabic(Windows). Any way I can have that set in the PHP script so I won't have to do so in the web browser each time?

Re: Arabic website

Posted: Wed Jan 13, 2010 10:23 pm
by Weirdan
You can do that via header() function:

Code: Select all

 
<?php
header('Content-type: text/html;charset=iso-8859-6'); // put here whatever encoding you need.
// ... the rest of your script here