]> Sergey Matveev's repositories - zk.zsh.git/commitdiff
Explicit charset in index page
authorSergey Matveev <stargrave@stargrave.org>
Sun, 30 Jul 2023 10:15:35 +0000 (13:15 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 30 Jul 2023 10:15:35 +0000 (13:15 +0300)
zk.zsh

diff --git a/zk.zsh b/zk.zsh
index a9b63e7a0b8b67efa6cb8dd4b4695bb5967cb0f4..51f322b2771c9c0b9d35c8c65f18bf29ed05b793 100755 (executable)
--- a/zk.zsh
+++ b/zk.zsh
@@ -173,7 +173,10 @@ genIndex() {
     }
     local page=${1}index
     print "<!DOCTYPE html>
-<html><head><title>$page ($now)</title></head><body><ul>"
+<html><head>
+<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
+<title>$page ($now)</title>
+</head><body><ul>"
     for p (${(oi)_links}) {
         getrel $page $p
         print "<li><a href=\"${REPLY}.html\">$p</a> <sup>${pages[$p]}</sup> (${sizes[$p]} bytes)</li>"