diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2016-03-29 17:25:05 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2016-03-29 17:25:05 +0200 |
commit | 4a5f26c97a42addab2aacc8d3b28875eda78bbb1 (patch) | |
tree | ab82b882a3d08d362d0cd08e049162b2cf79638a /web/tutorials | |
parent | 7a4db26a344dfa960a4b6736bf787abc6d33be50 (diff) | |
download | hakyll-4a5f26c97a42addab2aacc8d3b28875eda78bbb1.tar.gz |
Add a note about setLocaleEncoding in FAQ
See #399
Diffstat (limited to 'web/tutorials')
-rw-r--r-- | web/tutorials/faq.markdown | 12 |
1 files changed, 12 insertions, 0 deletions
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: |