You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using laravel-snappy to generate PDF files in a Laravel application. The library works as expected on browsers like Chrome, but I encountered an issue when downloading files using Safari. Specifically, when the filename contains non-ASCII characters (e.g., Japanese characters), the name gets incorrectly encoded.
For example, a correct filename should appear as follows: #335テスト_社内見積_20231001.pdf
I am currently using laravel-snappy to generate PDF files in a Laravel application. The library works as expected on browsers like Chrome, but I encountered an issue when downloading files using Safari. Specifically, when the filename contains non-ASCII characters (e.g., Japanese characters), the name gets incorrectly encoded.
For example, a correct filename should appear as follows:
#335テスト_社内見積_20231001.pdf
However, in Safari, it is incorrectly displayed as:
#335ãã¹ã_社åè¦ç©_20231001.pdf
Here's a snippet of the code I'm using:
I tried using both rawurlencode and urlencode for the filename in the Content-Disposition header, but neither resolved the issue.
Laravel version: ^6.20.26
laravel-snappy version: ^0.4.8
PHP version: 7.4
Please help me!
Thank you!
The text was updated successfully, but these errors were encountered: