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