小编inc*_*ent的帖子

我的jekyll网站无法构建:Liquid Exception:不兼容的字符编码

我不知道我改变了什么,但今天我不能再成功地用jekyll构建我网站的首页.它现在抱怨:

[2012-10-30 14:22:10] regeneration: 1 files changed
Liquid Exception: incompatible character encodings: UTF-8 and ASCII-8BIT in index.html
Run Code Online (Sandbox Code Playgroud)

我无法解决这个问题.我相信它是通过我在首页index.html创建的一系列帖子引入的,其中我包含了最后一个'n'帖子的摘录.我在我的_posts /目录中使用了file(1),并且确实有一些混合:

_posts/2012-08-10-canned-responses-your-silent-partner.md:    UTF-8 Unicode English text, with very long lines
_posts/2012-08-21-alternate-ssh-for-osx.md:                   UTF-8 Unicode English text, with very long lines
_posts/2012-08-21-appus-interruptus.md:                       ASCII English text
_posts/2012-10-25-emoryfocuslight.md:                         ASCII English text
_posts/2012-10-28-distributed-social-networking-with-tent.md: ASCII English text, with very long lines
Run Code Online (Sandbox Code Playgroud)

不过,我不确定这是不是我的问题.我使用vim和bbedit来编辑这些文件,它们存储在Dropbox中(我在Dropbox文件夹中构建/暂存,但在其他地方发布).我的大多数写作/编辑都是在OS X上完成的.

当我搜索此错误消息时,我获得了很多针对rails应用程序的命中或强制ruby gems使用特定编码,我不知道这是否相关或甚至可以帮助我.愿意瞄准正确的方向或被告知如何解决这种情况.这是一个悲伤的事态!

utf-8 liquid jekyll

19
推荐指数
2
解决办法
4347
查看次数

标签 统计

jekyll ×1

liquid ×1

utf-8 ×1