Skip to content

Commit e53b2fa

Browse files
committed
fix: fix charset
1 parent 5c40f84 commit e53b2fa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/plugin-rsc/examples/basic/src/framework/entry.rsc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export async function handleRequest({
9797
// respond html
9898
return new Response(htmlStream, {
9999
headers: {
100-
'Content-type': 'text/html',
100+
'content-type': 'text/html;charset=utf-8',
101101
vary: 'accept',
102102
},
103103
})

packages/plugin-rsc/examples/basic/src/routes/root.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export function Root(props: { url: URL }) {
3434
return (
3535
<html>
3636
<head>
37+
<meta charSet="utf-8" />
3738
<title>vite-rsc</title>
3839
{import.meta.viteRsc.loadCss('/src/routes/root.tsx')}
3940
</head>

0 commit comments

Comments
 (0)