diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-03-11 11:47:54 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-03-11 11:47:54 +0100 |
commit | 5c053d4c7106b5fe894263281ec7501ec5293bb6 (patch) | |
tree | 1d7b392aac0e04b1bed70e878f41a732e22d5e24 | |
parent | 874a86a081fb181f89e24a9161a6806913311fc1 (diff) | |
download | hakyll-5c053d4c7106b5fe894263281ec7501ec5293bb6.tar.gz |
Add a section on the UTF-8 stuff in the faq
-rw-r--r-- | web/tutorials/faq.markdown | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/web/tutorials/faq.markdown b/web/tutorials/faq.markdown index 63f310f..66dd4e6 100644 --- a/web/tutorials/faq.markdown +++ b/web/tutorials/faq.markdown @@ -3,6 +3,27 @@ title: FAQ author: Jasper Van der Jeugt --- +## "hGetContents: invalid argument" or "commitBuffer: invalid argument" + +If you get any of the errors: + + commitBuffer: invalid argument (invalid character) + +or: + + hGetContents: invalid argument (Invalid or incomplete multibyte or wide + character) + +It means that your Hakyll executable couldn't write to (in the former case) or +read (in the latter) from an UTF-8 encoded file. + +On most linux distros, you can solve this by setting your `LANG` to use UTF-8, +using something like: + + LANG=nl_BE.UTF-8 ./site build + +You should also add this to your `.profile`, or whatever config file you use. + ## "File name does not match module name" on Mac OS Hakyll.hs:1:1: |