diff --git a/src/hooks/business/download.ts b/src/hooks/business/download.ts index 866aa78a..b3b70c14 100644 --- a/src/hooks/business/download.ts +++ b/src/hooks/business/download.ts @@ -115,7 +115,8 @@ export function useDownload() { await handleResponse(response); - const finalFilename = filename || response.headers.get('Download-Filename') || `download-${timestamp}`; + const rawHeader = response.headers.get('Download-Filename'); + const finalFilename = filename || (rawHeader ? decodeURIComponent(rawHeader) : null) || `download-${timestamp}`; if (response.body && isHttps()) { const contentLength = Number(response.headers.get('Content-Length'));