I have a php script that prompts the user to download a file:
header("Content-Disposition: attachment; filename=$filename");
Works fine, except with foreign/chinese/arabic char sets; all I get is a load of letters/numbers.
طرائف الأطفال.txt becomes 7TcATQCIIZM.txt.
I need it to retain the original char set filename. Any ideas?
Try:
Before your PHP query that fetches the filename.