hectorqin / hectorqin/reader

[server]macOS下的safari导出书籍时,文件名乱码

Open
#656 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.