From 3d253508d0e473c58940bc12d8ca661fe8837cd2 Mon Sep 17 00:00:00 2001 From: moris Date: Sun, 8 Dec 2024 00:16:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E5=AD=97=E3=82=B3=E3=83=BC?= =?UTF-8?q?=E3=83=89=E6=8C=87=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/code/[slug]/+page.server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/code/[slug]/+page.server.js b/src/routes/code/[slug]/+page.server.js index b84c13d..4e60780 100644 --- a/src/routes/code/[slug]/+page.server.js +++ b/src/routes/code/[slug]/+page.server.js @@ -4,7 +4,7 @@ import fs from 'node:fs'; export async function load({params}) { const code = params.slug.replace(/\.html$/, ""); - const html = fs.readFileSync(`${POST_DIR}/Codes/${code}.html`); + const html = fs.readFileSync(`${POST_DIR}/Codes/${code}.html`, 'utf-8'); return {html} } \ No newline at end of file