diff --git a/sources/packages/backend/apps/api/src/route-controllers/student/student.controller.service.ts b/sources/packages/backend/apps/api/src/route-controllers/student/student.controller.service.ts index c9bc34b97d..fdcbbad7d8 100644 --- a/sources/packages/backend/apps/api/src/route-controllers/student/student.controller.service.ts +++ b/sources/packages/backend/apps/api/src/route-controllers/student/student.controller.service.ts @@ -154,9 +154,11 @@ export class StudentControllerService { ); } + const encodedFileName = encodeURIComponent(studentFile.fileName); + response.setHeader( "Content-Disposition", - `attachment; filename=${studentFile.fileName}`, + `attachment; filename*=UTF-8''${encodedFileName}`, ); try {