demo · v139
Explicit Charset Guide
Paste an ISO-2022-JP byte-shaped sample; pick how the HTML response is served. The parser decision, fallback path, and security implication flip in real time. The lesson: declare the actual charset explicitly and keep headers and markup aligned.
your bytes
Use the demo sample or paste your own escape-sequence Japanese.
chrome 138 (auto-detect)
—
chrome 139+ (no auto-detect)
—
fix it once
// Every HTML response, on every endpoint, must declare its charset.
res.setHeader('Content-Type', 'text/html; charset=utf-8');
// OR — in the HTML <head>:
<meta charset="utf-8">
// If you still serve ISO-2022-JP somewhere, declare it explicitly:
res.setHeader('Content-Type', 'text/html; charset=iso-2022-jp');