PHP special characters

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
santille
Forum Newbie
Posts: 17
Joined: Thu Aug 05, 2004 1:31 pm

PHP special characters

Post 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
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: PHP special characters

Post by it2051229 »

how about "rawurlencode"?
santille
Forum Newbie
Posts: 17
Joined: Thu Aug 05, 2004 1:31 pm

Re: PHP special characters

Post by santille »

Not thought!
I'll check and advise

Thanks
Post Reply