fix: 文字コード指定

This commit is contained in:
moris 2024-12-08 00:16:10 +09:00
parent e5e8123d51
commit 3d253508d0

View File

@ -4,7 +4,7 @@ import fs from 'node:fs';
export async function load({params}) { export async function load({params}) {
const code = params.slug.replace(/\.html$/, ""); 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} return {html}
} }