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
{{ message }}
Repository navigation
[Bug] UnicodeEncodeError: 'latin-1' codec can't encode character '\u2019' #25
Some files with a typographic apostrophe (', U+2019) in their filename fail with this error:
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2019' in position 56: ordinal not in range(256)
Example filename: SEO - 3.3 - Les bases techniques d'écriture.mp4
Accented characters seem to be handled fine, so it looks like the issue is specifically with the curly apostrophe (') as opposed to the straight one ('). Somewhere in the code a string is being encoded as latin-1 instead of utf-8.
The issue is in backend/api/routes/library.py . The three Content-Disposition headers use filename="..." which HTTP encodes as latin-1, so anything outside that range blows up.
Activity
Tiritibambix commentedon May 16, 2026
The issue is in
backend/api/routes/library.py. The threeContent-Dispositionheaders usefilename="..."which HTTP encodes as latin-1, so anything outside that range blows up.Fix is to switch to RFC 5987 syntax:
sim186 commentedon May 16, 2026
Should be solved by the latest commit.
feat: #25 implement content disposition helper and update export endp…
Tiritibambix commentedon May 17, 2026
Thanks for the quick fix :)