Blog 1

Random Talk on Random Thoughts

Resolving Jekyll's YAML Exception

| Comments |

Problem

  1. Created a new Octopress post with rake in Windows 7’s Git Bash.
  2. Wrote the post using gVim.
  3. Ran rake generate, and got an YAML exception:

    YAML Exception reading [filename].markdown: invalid byte sequence in UTF-8

Solution

Finally, after glimpsing the above web pages, I realized that the file enconding should be UTF-8.

Thus, the editor command :se fenc=utf8 | wq will do.

Comments