i have a problem with downloading file name with special characters ( accents ) and spaces . One with extenstion .txt and one without extension.For example : "dokument bez přípony" and "nový textový dokument.txt"
For downloading files in Internet Explorer i am using following:
$name is UTF8
filename="rawurlencode($name)"; filename*=UTF-8''rawurlencode($name)
This is not working ( downloaded with %20 instead spaces )
Content-Disposition: attachment; filename="dokument%20bez%20p%C5%99%C3%ADpony"; filename*=UTF-8''dokument%20bez%20p%C5%99%C3%ADpony
This is working: ( downloaded properly with spaces if name contains extension )
Content-Disposition: attachment; filename="nov%C3%BD%20textov%C3%BD%20dokument.txt"; filename*=UTF-8''nov%C3%BD%20textov%C3%BD%20dokument.txt
Any suggestions how to download file without attachment ?