Page 1 of 1

PHP special characters

Posted: Thu Apr 23, 2009 4:23 am
by santille
Hello,

I've a PHP script that lists the directories and files of a partition of my harddisk. Here is the problem : the special characters are not taken into account. I've used the htmlspecialchars function but without success. Here is the piece of code :

Code: Select all

$folders .= '<a href="dir.php?rep='.$mydir.$file.'/">'.htmlspecialchars($file,ENT_QUOTES,"ISO-8859-15").'</a>';
Thanks for your help,

seb

Re: PHP special characters

Posted: Thu Apr 23, 2009 5:57 am
by it2051229
how about "rawurlencode"?

Re: PHP special characters

Posted: Thu Apr 23, 2009 9:02 am
by santille
Not thought!
I'll check and advise

Thanks