From c99556efc496701e67832b460dcbb33689c99ea0 Mon Sep 17 00:00:00 2001 From: Nathaniel Smith Date: Wed, 15 Oct 2014 02:02:48 -0400 Subject: [PATCH] fix encoding issue --- scripts/userlist.hy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/userlist.hy b/scripts/userlist.hy index 75705d9..95aabc2 100644 --- a/scripts/userlist.hy +++ b/scripts/userlist.hy @@ -8,7 +8,7 @@ (def timestamp (.strftime (.now datetime) "%Y-%m-%d %H:%M:%S")) (defn slurp [filename] - (.read (open filename "r"))) + (.read (apply open [filename "r"] {"encoding" "utf-8"}))) (def default-html (slurp "/etc/skel/public_html/index.html"))