on master help sign in
Add a section on the UTF-8 stuff in the faq
5c053d4Jasper Van der Jeugt
web/tutorials/faq.markdown+21
@@ -3,6 +3,27 @@ title: FAQ
3author: Jasper Van der Jeugt
3author: Jasper Van der Jeugt
4---
4---
5
5
6+## "hGetContents: invalid argument" or "commitBuffer: invalid argument"
7+
8+If you get any of the errors:
9+
10+ commitBuffer: invalid argument (invalid character)
11+
12+or:
13+
14+ hGetContents: invalid argument (Invalid or incomplete multibyte or wide
15+ character)
16+
17+It means that your Hakyll executable couldn't write to (in the former case) or
18+read (in the latter) from an UTF-8 encoded file.
19+
20+On most linux distros, you can solve this by setting your `LANG` to use UTF-8,
21+using something like:
22+
23+ LANG=nl_BE.UTF-8 ./site build
24+
25+You should also add this to your `.profile`, or whatever config file you use.
26+
6## "File name does not match module name" on Mac OS
27## "File name does not match module name" on Mac OS
7
28
8 Hakyll.hs:1:1:
29 Hakyll.hs:1:1: