Page 1 of 1

about arabic variable in php

Posted: Sat Jul 11, 2009 3:42 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: Mon Jul 13, 2009 3:37 pm
by Darhazer
Did you set the correct content-type / encoding before echo-ing? Maybe it's just browser that don't show correctly the name...

Code: Select all

header('Content-type: text/html; charset=utf8');