PHP Encoding Issue

Status
Not open for further replies.

ascendotum

New Member
I have a PHP script which prints out a list of files in a directory as links. It all works ok until it encounters a file with non english charaters like:
"08 Íllgresi.jpg".
It links to this file as
"08 �llgresi.jpg" with the link:
http://example.com/08 �llgresi.jpg
instead of
http://example.com/08%20%cdllgresi.jpg
(The actual link to the file)

I assume this problem has something to do with the character encoding and url enoding, but to be honest I'm at a bit of a loss as to why!

Anyone have any ideas how to solve this?

Thanks.
 
Status
Not open for further replies.
Top