Skip to content
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

jekyll serve -w gives "invalid byte sequence in US-ASCII" #548

Closed
guidobouman opened this issue Nov 15, 2013 · 4 comments
Closed

jekyll serve -w gives "invalid byte sequence in US-ASCII" #548

guidobouman opened this issue Nov 15, 2013 · 4 comments

Comments

@guidobouman
Copy link
Contributor

Trying to run jekyll to work on docs but can't get it to boot. There's UTF characters in a blog post which jekyll (ruby probably) does not like.

Tried setting the lang variables already:

LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

No luck yet.

@vjeux
Copy link
Contributor

vjeux commented Nov 15, 2013

Does it indicate where the utf8 characters are?

Christopher "vjeux" Chedeau
Facebook Engineer
http://blog.vjeux.com/

On Nov 15, 2013, at 2:42 AM, Guido Bouman [email protected] wrote:

Trying to run jekyll to work on docs but can't get it to boot. There's UTF characters in a blog post which jekyll (ruby probably) does not like.

Tried setting the lang variables already:

LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
No luck yet.


Reply to this email directly or view it on GitHub.

@zpao
Copy link
Member

zpao commented Nov 15, 2013

Quite possibly from my name - (that's a real apostrophe, not the '). I've had that problem in the past.

What version of Ruby are you using? Like I said, I've had the problem in the past, but not recently (using 1.9.3 here). I think you're going to need at least 1.9.2 (see #401) anyway, so hopefully it's not a big problem.

Does it say which post? That would help narrow it down.

@guidobouman
Copy link
Contributor Author

Sorry guys, rather incomplete error report.

Error takes place in: react/docs/_posts/2013-07-02-react-v0-4-autobind-by-default.md

Just a stacktrace until jekyll's scan method, no line numbers afterwards.

➜  docs git:(master) ✗ rbenv version
2.0.0-p247 (set by /Users/Guido/.rbenv/version)

bundle install and npm install ran without issues.

EDIT:
I can confirm that an em-dash was the cause of the error, but replacing it with a bare dash raised the error in another post. This should not be happening, as my ruby should just accept utf-8. Weird stuff...

@guidobouman
Copy link
Contributor Author

Wow, I've been asleep this morning. I completely forgot export in front of my language statements. Found out when checking locale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants