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

invalid byte sequence trying to run ruhoh server #277

Open
masukomi opened this issue Feb 16, 2014 · 3 comments
Open

invalid byte sequence trying to run ruhoh server #277

masukomi opened this issue Feb 16, 2014 · 3 comments

Comments

@masukomi
Copy link

Following the Quick Start.

bundle exec ruhoh server 9292
/Users/masukomi/workspace/ruhoh-site/vendor/bundle/gems/ruhoh-2.6/lib/ruhoh/parse.rb:37:in `gsub': invalid byte sequence in UTF-8 (ArgumentError)
from /Users/masukomi/workspace/ruhoh-site/vendor/bundle/gems/ruhoh-2.6/lib/ruhoh/parse.rb:37:in `page_file'
from /Users/masukomi/workspace/ruhoh-site/vendor/bundle/gems/ruhoh-2.6/lib/ruhoh/base/page_like.rb:59:in `parse_page_file'
@Stebalien
Copy link
Contributor

One of your files (layouts, post, etc.) isn't utf-8 encoded.

@debo
Copy link

debo commented Mar 5, 2014

@masukomi the directory_watcher gem looks for every file and folders you have in your project. If like me for example you have bunlder configured to install gems locally for example or bin files you might want to make sure those files/folders are not parsed via _config.yml_ with something like:

'folder-that-might-causes-problem':
  'use': 'ignore'

Let me know if that's been the case

@ameuret
Copy link

ameuret commented Jun 17, 2014

If the advices above do not solve your case, make sure that you are not running into the bug highlighted by #281, fixed by 1c7df99. See a quick workaround in #293.

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