Page 1 of 1

How to develop an Arabic website

Posted: Tue Jun 30, 2009 6:18 am
by robinspaul
I have a website in English developed using php and mysql. My client wants me to do it in Arabic as well.
Could you please help me?

Re: How to develop an Arabic website

Posted: Tue Jun 30, 2009 6:22 am
by danielrs1
Look at the function: htmlentities(), ti should help you print the chars.

Also, an arabic translator would help :wink:

Re: How to develop an Arabic website

Posted: Tue Jun 30, 2009 6:25 am
by Mark Baker
Ensure that you're using UTF-8 for everything, and remember that arabic is rtl rather than ltr

Re: How to develop an Arabic website

Posted: Tue Jun 30, 2009 6:29 am
by BornForCode
Two vague, what is your problem? Implementing a multilanguage system to your site or to save arabic letters?

Re: How to develop an Arabic website

Posted: Tue Jun 30, 2009 6:48 am
by robinspaul
The problem is I developed a website in English and my client wants the site in Arabic as well. He has given me the content translated to Arabic. When I paste it in the html page, it does not appear. I don't know how to put the Arabic content in html pages.

Re: How to develop an Arabic website

Posted: Tue Jun 30, 2009 6:50 am
by BornForCode
Send the proper headers so that browsers should know what charset to use for displaying content.

Re: How to develop an Arabic website

Posted: Tue Jun 30, 2009 7:45 am
by robinspaul
Could you please show me an example?

Re: How to develop an Arabic website

Posted: Tue Jun 30, 2009 10:55 am
by BornForCode

Re: How to develop an Arabic website

Posted: Tue Jul 14, 2009 10:04 am
by robinspaul
Could you please show me an example of html page.
I tried and I could not see anything (just some junk characters).
Should I install arabic font in the hosting server?
Thanks,
Paul

Re: How to develop an Arabic website

Posted: Tue Jul 14, 2009 12:17 pm
by Skara
Language tags:
viewtopic.php?f=1&t=103018

Fonts are read from clients, not hosts.
<span style="font-family: Arial;">blah</span>
will only use the Arial font if Arial is installed on the computer that's browsing the page.

Anyone who's reading an arabic website would more than likely have some arabic font installed on their computer. ;)

Re: How to develop an Arabic website

Posted: Tue Aug 18, 2009 8:18 am
by robinspaul
Hi,
I downloaded Arabic font from
http://www.freelang.net/fonts/index.php
and I used the above code
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<html lang="ar"> <!-- HTML -->
<html xmlns="http://www.w3.org/1999/xhtml" lang="ar" xml:lang="ar"> <!-- XHTML -->
Then I copied some arabic content to this page, after converting to arabic using google translater; but, I can't see the arabic
content.
Is there any specific font I need to download.
Thanks,
Paul