Skip to content

Commit 07cafa7

Browse files
authored
fix: Unicode Error while downloading issue (#271)
- Encoded the download name to utf-8
1 parent bee848a commit 07cafa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lms/lmsweb/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def download(download_id: str):
387387
response.headers.set('Content-Type', 'zip')
388388
response.headers.set(
389389
'Content-Disposition', 'attachment',
390-
filename=f'{filename}.zip',
390+
filename=f'{filename}.zip'.encode('utf-8'),
391391
)
392392
return response
393393

0 commit comments

Comments
 (0)