wavecrafters blog

Our small contribution to the developer community

Octopress, Accents and Rare Characters

| Comments

When I fist tried to configure Octopress, we encountered a problem: Jekyll doesnt do too well with accents and weird characters. When running rake generate I received the following error message:

Starting to watch source with Jekyll and Compass. Starting Rack on port 4000
C:/Ruby193/lib/ruby/1.9.1/psych.rb:154:in `parse': couldn't parse YAML at line 0 column 0 (Psych::SyntaxError)
        from C:/Ruby193/lib/ruby/1.9.1/psych.rb:154:in `parse_stream'
        from C:/Ruby193/lib/ruby/1.9.1/psych.rb:125:in `parse'
        from C:/Ruby193/lib/ruby/1.9.1/psych.rb:112:in `load'
        from C:/Ruby193/lib/ruby/1.9.1/psych.rb:229:in `load_file'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/lib/jekyll.rb:130:in `configuration'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/bin/jekyll:221:in `<top (required)>'
        from C:/Ruby193/bin/jekyll:19:in `load'
        from C:/Ruby193/bin/jekyll:19:in `<main>'
[2013-12-17 10:38:36] INFO  WEBrick 1.3.1
[2013-12-17 10:38:36] INFO  ruby 1.9.3 (2011-10-30) [i386-mingw32]

I played around a bit, trying to make jekyll to accept UTF-8. I have only found a partial solution, and that is inserting the html escaping characters. For example instead of í you could write `&iacute`

jekyll, octopress

related posts for octopress using categories »

Comments