Skip to content

Commit e20fa3c

Browse files
authored
fix: explicitly set a charset for rendered HTML documents (#355)
1 parent 57514f8 commit e20fa3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/webapp/app/entry.server.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function serveTheBots(
7474
{
7575
// Use onAllReady to wait for the entire document to be ready
7676
onAllReady() {
77-
responseHeaders.set("Content-Type", "text/html");
77+
responseHeaders.set("Content-Type", "text/html; charset=utf-8");
7878
let body = new PassThrough();
7979
pipe(body);
8080
resolve(
@@ -114,7 +114,7 @@ function serveBrowsers(
114114
// use onShellReady to wait until a suspense boundary is triggered
115115
onShellReady() {
116116
shellReady = true;
117-
responseHeaders.set("Content-Type", "text/html");
117+
responseHeaders.set("Content-Type", "text/html; charset=utf-8");
118118
let body = new PassThrough();
119119
pipe(body);
120120
resolve(

0 commit comments

Comments
 (0)