新技能√

√ New Tech Get... is a website which records my "新技能√".

Fix 'Invalid Byte Sequence' When Generating Static Post

| Comments

Error happens

好久没有玩这个东东了,最近在学习Ruby/RoR,所以突然对这个来了兴趣,但是却在运行rake generate时遇到了下列错误

1
2
3
4
5
6
7
λ rake generate
## Generating Site with Jekyll
identical source/stylesheets/screen.css
Configuration from D:/github/earthday.github.io/_config.yml
Building site: source -> public
YAML Exception reading 2013-04-20-welcome.markdown: invalid byte sequence in GBK D:/github/earthday.github.io/plugins/backtick_code_block.rb:13:in `gsub': invalid
 byte sequence in GBK (ArgumentError)

解决办法

外事不决问Google,于是就找到了这个问题的解决办法。参见http://kumu-linux.github.io/blog/2013/04/06/octopress-plus-github/. 就是在命令行中设置:

1
2
set LANG=zh_CN.UTF-8
set LC_ALL=zh_CN.UTF-8

OKay,既然好久没来了,就更新一篇,留个脚印。。哈哈。。

Comments