3

I try to regerate my jekyll blog with unicode post (russian text with utf-8 encoding) and cannot to do it because of:

D:\Dropbox\projects\blog>jekyll
Configuration from D:/Dropbox/projects/blog/_config.yml
Building site: . -> ./_site
C:/Ruby193/lib/ruby/1.9.1/rexml/text.rb:131:in `=~': incompatible encoding regexp match (UTF-8 regexp with IBM437 string) (Encoding::Compati
bilityError)
    from C:/Ruby193/lib/ruby/1.9.1/rexml/text.rb:131:in `!~'
    from C:/Ruby193/lib/ruby/1.9.1/rexml/text.rb:131:in `check'
    …

Full error log on pastebin

My _config.yml: (full config on pastebin)

safe:        false
auto:        false
server:      false
server_port: 4000
baseurl:    /
…

I checked [error installing RDoc …] and [heroku installation problems] and solutions was not helpful for me.

I will provide any addition information to solve this problem

5
  • Can you post your _config.yml ? Thanks.
    – motleydev
    Sep 24, 2012 at 13:02
  • @motleydev I added note about unicode symbols and _config.yml. Sep 24, 2012 at 18:12
  • I've had finicky problems in the past with blank returns in my front matter - have you tried pulling those out?
    – motleydev
    Sep 25, 2012 at 13:42
  • @motleydev If I replace my russian posts with english ones, jekyll regeretion works as well. Oct 8, 2012 at 21:37
  • Hmmm... then sadly I must back out of the "suggestion ring" - I hope you get this resolved.
    – motleydev
    Oct 9, 2012 at 14:47

3 Answers 3

5

chcp 65001 did not work on my system, then jekyll returns immediately.

A simple way to work around this error is to avoid non ASCII characters in file names of the posts and pages. The file content itself can be UTF-8 without problem, if it does not start with a BOM.

3

chcp 65001 in cmd helps me everytime before running jekyll. But I think it is not full solution

2

Use the following fix: https://github.com/bradleywright/jekyll/commit/576f97e2610ef3259a3ea778537d244bc438da20

It worked for me. It is just a change in a line so that it forces files to be read in utf-8

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.