diff --git a/src/routes/api/devices/[devEui]/pdf/+server.ts b/src/routes/api/devices/[devEui]/pdf/+server.ts index 7e6d4bf9..69e7fbc1 100644 --- a/src/routes/api/devices/[devEui]/pdf/+server.ts +++ b/src/routes/api/devices/[devEui]/pdf/+server.ts @@ -519,7 +519,7 @@ export const GET: RequestHandler = async ({ params, url, locals: { supabase } }) status: 200, headers: { 'Content-Type': 'application/pdf', - 'Content-Disposition': `attachment; filename=device-${devEui}-report-${startDateParam}-to-${endDateParam}.pdf`, + 'Content-Disposition': `attachment; filename*=UTF-8''device-${devEui}-report-${startDateParam}-to-${endDateParam}.pdf`, 'Content-Length': pdfBuffer.length.toString(), 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET',