New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hakyll can't handle unicode? #614
Comments
I don't think Unicode is the root cause here. I have built Unicode pages successfully with Hakyll. Could you check the encoding of your |
This is a |
|
However I built with |
Oh, yeah:
Any idea how to deal with that? |
I'm not very experienced with Nix but just googling for "nix lang lc_all" led me to NixOS/nix#318 which provides a solution near the bottom of the thread. Closing the issue as it's not really related to Hakyll. |
I\ve just had this. The problem stems from stack using nix in --pure mode by default (i.e., with an empty environment). Seems like a global fix for nix is writing a ~/.stack/config.yaml akin to
|
The problem is that operations like
That's why Some of this isn't exquisitely well-documented right now, unfortunately. |
Thanks for the precision. I knew what is --pure was but was just surprised that this was the default for stack as even on nix, it's not advertised much. There must be a good reason for it. |
... addding a stack.yaml pour eveiter le genre de probleme que j'ai eu avec hakyll du style jaspervdj/hakyll#614. [ERROR] ./about.rst: hGetContents: invalid argument (invalid byte sequence) parce que nix n\avait pas LANG dans l'env
Trying to build the default (hakyll-init) site I get this:
It looks like it's a problem with the unicode character (it builds when I remove it):
The line:
1. Amamus Unicode 碁
Hakyll and site built with
nix
andstack --resolver=lts-10.7
The text was updated successfully, but these errors were encountered: