Save pdf with Special Characters

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Mon Oct 22, 2012 11:13 pm

Save pdf with Special Characters

Postby Stela » Mon Oct 22, 2012 11:20 pm


I have this pdf file:

SA Pias - AsPias Rosé.pdf

To open it I use this on the html page:

Code: Select all


The AsPiasRose.php is like this:

Code: Select all

            $filename = "SA Pias - AsPias Rosé.pdf";
            $filepath = "http//" . $filename;
            header("Pragma: public");
            header("Expires: 0");
            header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
            //setting content type of page
            header("Content-Type: application/pdf");
            header("Content-Disposition: attachment; filename=\"" . $filename."\"");
            header("Content-Description: File Transfer");

Everything runs fine, until I open the file that was downloaded and then Acrobat opens and displays this message (in attachment)
AcrobatMessage.JPG (22.05 KiB) Viewed 195 times

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest