gravity-pdf icon indicating copy to clipboard operation
gravity-pdf copied to clipboard

Safari: Non-ASCII Characters in Filename don't work when Viewing/Download PDF

Open jakejackson1 opened this issue 4 years ago • 4 comments
trafficstars

Description If a PDF filename contains non ASCII characters (like another language 報名成功!) when you view or download the PDF from the admin area the filename will be garbled.

Research shows there isn't a good way to resolve this using the Content-disposition header. The most reliable method is to include the filename at the end of the URL and not use a Content-disposition header at all.

Further testing will need to be done on the best way to structure the URL, and ensure it works with our existing system.

jakejackson1 avatar Oct 21 '21 23:10 jakejackson1

Hi @jakejackson1. I wasn't able to replicate this issue, it works fine on my end using Chrome and Firefox browsers : image image

jestonihpi avatar Feb 07 '22 05:02 jestonihpi

@jestonihpi what's the filename look like on your local machine when you use the "download" link on the Entry Details page?

jakejackson1 avatar Feb 07 '22 06:02 jakejackson1

Everything seems normal on my end @jakejackson1 : image image

jestonihpi avatar Feb 07 '22 22:02 jestonihpi

Further testing has shown this appears to be a Safari browser-related issue only. As you can't test this yourself to replicate, I'll look into this when I've time.

jakejackson1 avatar Feb 07 '22 23:02 jakejackson1