[server]macOS下的safari导出书籍时,文件名乱码
Open
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 11k
- Forks
- 5.5k
- PR merge metrics
- No merged PRs in 30d
Description
如题,文件名中的中文变成URL编码。
To Reproduce 如何重现问题
只要导出书籍必定会出现。
版本说明
- OS: [e.g. win] macOS15.4.1
- Deploy Method 说明软件部署方式 群晖Docker
Additional context 其他说明
AI说是部分服务器未遵循标准,在返回文件时未正确设置 Content-Disposition 头部的 filename* 参数(用于 UTF-8 编码),导致 Safari 无法自动解码文件名。Safari 对非 ASCII 字符(如中文、日文、特殊符号)的处理较严格,若服务器未明确指定 UTF-8 编码,Safari 会直接保留 URL 编码格式,而非尝试解码。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the server-side book export response and inspect how its Content-Disposition filename is constructed. Reproduce the export in Safari on macOS with a Chinese book name, then verify that the downloaded filename is displayed as Chinese text rather than URL encoding.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100