Add a note about setLocaleEncoding in FAQ
See #399
commit4a5f26c97a42addab2aacc8d3b28875eda78bbb1
authorJasper Van der Jeugt <m@jaspervdj.be>
dateTue 29 Mar 2016, 17:25 (11 years ago)
parent7a4db26
web/tutorials/faq.markdown+12
@@ -27,6 +27,18 @@ You should also add this to your `.profile`, or whatever config file you use.
2727On Windows, running `chcp 65001` before running your Hakyll executable has been
2828reported to work.
2929
30+Alternatively, you can specify this in your `site.hs`:
31+
32+```haskell
33+import qualified GHC.IO.Encoding as E
34+
35+main :: IO ()
36+main = do
37+ E.setLocaleEncoding E.utf8
38+ hakyll $ do
39+ ...
40+```
41+
3042## "File name does not match module name" on Mac OS
3143
3244 Hakyll.hs:1:1: