projects
/
swg.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d957ea0
)
Explicit charset specifying won't hurt
author
Sergey Matveev <stargrave@stargrave.org>
Tue, 26 Jul 2022 10:00:38 +0000 (13:00 +0300)
committer
Sergey Matveev <stargrave@stargrave.org>
Tue, 26 Jul 2022 10:00:38 +0000 (13:00 +0300)
zk.zsh
patch
|
blob
|
history
diff --git
a/zk.zsh
b/zk.zsh
index 93ad39d6cc3995bfe95897fa3704e6f769faee67..f5c88ef59e08026290d99d17c44ef64c887bd5ad 100755
(executable)
--- a/
zk.zsh
+++ b/
zk.zsh
@@
-122,7
+122,10
@@
genHTML() {
data="${data//\[${p}\]/<a href=\"${REPLY}.html\">[$p]</a>}"
}
data="<!DOCTYPE html>
-<html><head><title>$page (${pages[$page]})</title></head><body><pre>
+<html><head>
+<title>$page (${pages[$page]})</title>
+<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
+</head><body><pre>
$data</pre>"
if [[ $ZK_CACHE ]]; then
print -r "$data" > $ZK_CACHE/${page}.html