From 4a5f26c97a42addab2aacc8d3b28875eda78bbb1 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Tue, 29 Mar 2016 17:25:05 +0200 Subject: Add a note about setLocaleEncoding in FAQ See #399 --- web/tutorials/faq.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'web/tutorials') diff --git a/web/tutorials/faq.markdown b/web/tutorials/faq.markdown index 87c1a92..e978c8d 100644 --- a/web/tutorials/faq.markdown +++ b/web/tutorials/faq.markdown @@ -27,6 +27,18 @@ You should also add this to your `.profile`, or whatever config file you use. On Windows, running `chcp 65001` before running your Hakyll executable has been reported to work. +Alternatively, you can specify this in your `site.hs`: + +```haskell +import qualified GHC.IO.Encoding as E + +main :: IO () +main = do + E.setLocaleEncoding E.utf8 + hakyll $ do + ... +``` + ## "File name does not match module name" on Mac OS Hakyll.hs:1:1: -- cgit v1.2.3