octopress / linkblog

Adds link blogging features, along with some other niceties, to any Jekyll site.
MIT License
20 stars 12 forks source link

valid multibyte char (US-ASCII) (SyntaxError) #1

Closed ghost closed 10 years ago

ghost commented 10 years ago

When trying to run jekyll build, I get an encoding error. Here's the (hopefully) relevant part:

openmedi@alphacentauri:~/Dropbox/Jekyll/L00kingAt$ jekyll build                 Configuration file: /home/openmedi/Dropbox/Jekyll/L00kingAt/_config.yml
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require': /var/lib/gems/1.9.1/gems/octopress-linkblog-1.0.0/lib/octopress-linkblog/configuration.rb:17: invalid multibyte char (US-ASCII) (SyntaxError)
/var/lib/gems/1.9.1/gems/octopress-linkblog-1.0.0/lib/octopress-linkblog/configuration.rb:17: invalid multibyte char (US-ASCII)
/var/lib/gems/1.9.1/gems/octopress-linkblog-1.0.0/lib/octopress-linkblog/configuration.rb:17: syntax error, unexpected $end, expecting '}'
          'marker' => "→",
                         ^

I've read somewhere else, that I should encode everything as UTF-8. So I put encoding: "utf-8"in my _config.yml. My locale on the machine I'm using to run jekyll looks like this (don't know, if this has anything to do with this):

LANG=en_US.UTF-8
LANGUAGE=en_US.UTF8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

Any help is greatly appreciated!


UPDATE: I was able to get it working by adding # encoding: utf-8to /var/lib/gems/1.9.1/gems/octopress-linkblog-1.0.0/lib/octopress-linkblog/configuration.rb. But this is probably a hacky way to this…


UPDATE 2: I just saw, that you did add the encoding line to the configuration.rb in this repo five days ago, which means, that the issue was fixed before I even brought it up.