inc*_*ent 19 utf-8 liquid jekyll
我不知道我改变了什么,但今天我不能再成功地用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使用特定编码,我不知道这是否相关或甚至可以帮助我.愿意瞄准正确的方向或被告知如何解决这种情况.这是一个悲伤的事态!
小智 22
修复是使用配置
例
encoding: utf-8
Run Code Online (Sandbox Code Playgroud)
听起来很愚蠢,但是重新安装 Jekyll。然后尝试重新编译您的网站。
进行了快速的谷歌搜索,请记住这些不是针对 Jekyll 的,而是针对 ruby 的,非常相似。
ruby 1.9 + sinatra 不兼容的字符编码:ASCII-8BIT 和 UTF-8
http://www.ruby-forum.com/topic/206925
你markdown在 _config 中设置了什么?
| 归档时间: |
|
| 查看次数: |
4347 次 |
| 最近记录: |