ankitects / ankitects/anki

Shared deck download removes all non-ASCII characters from filename

Open
#3,333 2 comments 0 reactions 0 assignees View on GitHub
ankiweb
Dominant language
Rust
Stars
30.5k
Forks
3.2k
Avg merge
2d 7h
Merged PRs (30d)
66

Description

> The deck at https://ankiweb.net/shared/info/1521800111 1 (chosen for its name only) is called:
> Русский - Турецкий Rusça-Türkçe kelimeler(слов) 407
> _-__Rusa-Trke_kelimeler_407.apkg

Probable solution:

Content-Disposition: attachment; filename="fallback.txt"; filename*=UTF-8''%E4%B8%AD%E6%96%87.txt

When the AnkiWeb code was originally written, `filename*` had not yet been introduced.

Originally reported on https://forums.ankiweb.net/t/shared-deck-download-removes-all-non-ascii-characters/47617

Contributor guide

Open the contributing guide

Research direction

Start at the AnkiWeb shared-deck download handler, which is not identified by file or test in the issue, and reproduce the download with the linked deck. Inspect the Content-Disposition response and verify that the completed download preserves non-ASCII characters through the UTF-8 filename while retaining a fallback filename.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.