Commit Diff


commit - 3e8d305f1094e8fa2ee5b3f3c2a969f370e74ebf
commit + 05724a920c1e5ed630250a71c903bdd8c9d88113
blob - 2eb6c5f803413dd7052725199bf4019e124b0bb0
blob + 896efcc255f2bc838311a4dc59115f6522b86efc
--- shinsha.ha
+++ shinsha.ha
@@ -28,7 +28,7 @@ fn sighandler(sig: signal::sig, data: nullable *opaque
 fn homepage(req: *http::request, res: *http::reswriter) (void | io::error) = {
 	if (res.code == 0) {
 		http::reply(req, res, 200, "OK")?;
-		http::header(res, "Content-Type", "text/plain")?;
+		http::header(res, "Content-Type", "text/plain;charset=utf-8")?;
 		fmt::fprintfln(res, "こんにちは世界!")?;
 		res.done = false;
 		return;
@@ -39,7 +39,7 @@ fn homepage(req: *http::request, res: *http::reswriter
 
 fn page2(req: *http::request, res: *http::reswriter) (void | io::error) = {
 	http::reply(req, res, 200, "OK")?;
-	http::header(res, "Content-Type", "text/plain")?;
+	http::header(res, "Content-Type", "text/plain;charset=utf-8")?;
 	fmt::fprintln(res, "Pagina 2")?;
 };