Page 1 of 1

about arabic variable in php

Posted: Sat Jul 11, 2009 3:45 pm
by taherfadloun
dear,
i have my own php script that i am using to put folders and files in to an array and show them with links to browse them,
but if there is an arabic title of a file or a folder the variable of that file will be like this (??????) when i use the echo.
please if there is a solution for that proplem will help me tell me plz.....



Taher Fadloun
taherfadloun@hotmail.com
damascus - syria

Re: about arabic variable in php

Posted: Sat Jul 11, 2009 7:27 pm
by Skara
Try encoding your html page in utf-8 and adding the language tag. That will probably solve the problem.

Code: Select all

<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 -->

Re: about arabic variable in php

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