You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Behavior should be the same as HTML, defaults or not. Adding res.charset on every repsonse is a PITA. Setting something like app.set('charset', 'utf-8') might be nice.
The text was updated successfully, but these errors were encountered:
Here still happens not correctly. When I use res.json(data) or res.type('json') even res.header('Content-Type', 'application/json'), the output content (Chinese words) are all in wrong encoding which should be expected in UTF-8 by default.
When I set res.header('Content-Type', 'application/json; charset=utf-8'), then everything goes well.
Behavior should be the same as HTML, defaults or not. Adding res.charset on every repsonse is a PITA. Setting something like app.set('charset', 'utf-8') might be nice.
The text was updated successfully, but these errors were encountered: