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

Can't start middleman server due to encoding issue in middleman-spellcheck #6

Open
virajsanghvi opened this issue Apr 27, 2014 · 5 comments

Comments

@virajsanghvi
Copy link

I get an error while running this out of the box on a mac:

/middleman-spellcheck-0.7.2/lib/middleman-spellcheck/spellchecker.rb:24: invalid multibyte char (US-ASCII) (SyntaxError)

Adding the following at the top of that file seems to solve that problem:

# encoding: utf-8
@ludwigschubert
Copy link

👍 get the same, though on travis CI.

@zealot128
Copy link
Contributor

what Ruby version did you use? From Ruby 2.1 or so, encoding utf-8 is assumed as default AFAIK. Only 1.9 needs the encoding header.
Please also try to update middleman-spellcheck to current version 0.8.

@ludwigschubert
Copy link

@zealot128 that's probably it, I'll check. Thanks!

@ludwigschubert
Copy link

Updating to Ruby 2.2 fixed this issue for me. Imho can be closed, @zealot128. Might want to mention the ruby version dependency somewhere, though? Thanks for your help!

@wkoszek
Copy link
Contributor

wkoszek commented Jun 22, 2016

@zealot128 We should close this one.

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

4 participants