commit - 3e8d305f1094e8fa2ee5b3f3c2a969f370e74ebf
commit + 05724a920c1e5ed630250a71c903bdd8c9d88113
blob - 2eb6c5f803413dd7052725199bf4019e124b0bb0
blob + 896efcc255f2bc838311a4dc59115f6522b86efc
--- shinsha.ha
+++ shinsha.ha
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;
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")?;
};