about arabic variable in php

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
taherfadloun
Forum Newbie
Posts: 2
Joined: Sat Jul 11, 2009 3:40 pm

about arabic variable in php

Post 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
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: about arabic variable in php

Post 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');
Post Reply