fix: 文字コード指定
This commit is contained in:
parent
e5e8123d51
commit
3d253508d0
@ -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}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user