on master help sign in
Add a section on the UTF-8 stuff in the faq
commit5c053d4c7106b5fe894263281ec7501ec5293bb6 authorJasper Van der Jeugt <m@jaspervdj.be> dateMon 11 Mar 2013, 11:47 (14 years ago) parent874a86a
1 file changed+21
web/tutorials/faq.markdown+21
web/tutorials/faq.markdown+21
@@ -3,6 +3,27 @@ title: FAQ
33author: Jasper Van der Jeugt
44---
55
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+
627## "File name does not match module name" on Mac OS
728
829 Hakyll.hs:1:1: