From a73e2f664e34591e509305c39a335793d1c3e98b Mon Sep 17 00:00:00 2001 From: "Stefan Pfeiffer, DL1ELY" Date: Wed, 28 Jan 2015 15:43:32 +0100 Subject: [PATCH] Fix garbled UTF-8 characters in TOC generation Fixes #13 --- src/cryogen_core/toc.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryogen_core/toc.clj b/src/cryogen_core/toc.clj index 871dba4..a84e84d 100644 --- a/src/cryogen_core/toc.clj +++ b/src/cryogen_core/toc.clj @@ -42,7 +42,7 @@ (defn generate-toc [html] (-> html - (.getBytes) + (.getBytes "UTF-8") (java.io.ByteArrayInputStream.) (html/parse) :content