I can not delete file with special chars using unlink().
My file name contains for example '," and nothing happen
when I using unlink().
I tried to use addslashes and iconv, but it doesn't help..
Can anybody help me?
Filename for example: aaaż'.pdf
@Solution
$newFilename = str_replace('\\','',$filename);
$newFilename = iconv("UTF-8","Windows-1250",$newFilename);
unlink($newFilename);