Skip to content

Commit e70cf16

Browse files
committed
Merge remote-tracking branch 'origin/fix-encoding'
2 parents 2ddfb0f + 2d46a38 commit e70cf16

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/routes/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function api(req, res, next) {
146146
}
147147
// do not cache API responses
148148
res.setHeader('Cache-Control', 'no-cache, max-age=0, must-revalidate');
149-
res.setHeader('Content-Type', 'application/json');
149+
res.setHeader('Content-Type', 'application/json;charset=UTF-8');
150150
res.end(JSON.stringify(resorts[0]));
151151
});
152152
}
@@ -157,7 +157,7 @@ function meta(req, res, next) {
157157
return next(err);
158158
}
159159
res.setHeader('Cache-Control', 'public, max-age=86400'); // good for 24hours
160-
res.setHeader('Content-Type', 'application/json');
160+
res.setHeader('Content-Type', 'application/json;charset==UTF-8');
161161
res.end(JSON.stringify(resorts));
162162
});
163163
}

public/stylesheets/style.styl.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ button {
314314

315315
body {
316316
font-size: 1em;
317-
font-family: sans-serif;
317+
font-family: system-ui, sans-serif;
318318
color: var(--color-text-body);
319319

320320
display: flex;

views/layout.jade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ html(
3535
data-service-worker=serviceWorker
3636
)
3737
head
38+
meta(charset='utf-8')
3839
title= title
3940
+description('description')
4041
meta(name='mobile-web-app-capable', content='yes')

0 commit comments

Comments
 (0)