utf8 not working #10732
Unanswered
pullmann4rent
asked this question in
Q&A
utf8 not working
#10732
Replies: 1 comment
-
Context
Why Fix (minimum viable) Use Remix helpers (auto UTF-8): // app/routes/example.tsx
import { json } from "@remix-run/node";
export async function loader() {
return json({ message: "¡Hola, mundo! Привет мир 你好" }); // Content-Type: application/json; charset=utf-8
} Or send raw text with explicit charset: export async function loader() {
return new Response("¡Hola, mundo!", {
headers: { "Content-Type": "text/plain; charset=utf-8" },
});
} For HTML: return new Response("<h1>Título ñ</h1>", {
headers: { "Content-Type": "text/html; charset=utf-8" },
}); Checklist
Docs
If this helps, please Mark as answer so others can find it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello,
why utf8 not working ?
root
and on the current page
Beta Was this translation helpful? Give feedback.
All reactions