From 23844d5417f23c779fd270390437508910ebacf0 Mon Sep 17 00:00:00 2001 From: Fabrice LAMANT Date: Fri, 6 Feb 2026 22:32:33 +0100 Subject: [PATCH] set encoding on file forwarding --- ui/app/api/data/[[...slug]]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/api/data/[[...slug]]/route.ts b/ui/app/api/data/[[...slug]]/route.ts index 75204bba2..b283dcdf4 100644 --- a/ui/app/api/data/[[...slug]]/route.ts +++ b/ui/app/api/data/[[...slug]]/route.ts @@ -13,7 +13,7 @@ export async function GET( const filePath = slug ? path.join(DATA_FOLDER, ...slug) : null; if (!filePath) throw new Error() - const content = await fs.readFile(filePath); + const content = await fs.readFile(filePath, "utf-8"); if (!content) throw new Error() return new NextResponse(content, { status: 200 });