Jekyll
http://jekyllrb.com/
Jekyll on GitHub
https://github.com/mojombo/jekyll
Jekyll-bootstrap
http://jekyllbootstrap.com/
Octopress
http://octopress.org/
hauran
V2EX  ›  Jekyll

如何发布支持中文的post?

  •  
  •   hauran · Mar 11, 2012 · 6157 views
    This topic created in 5199 days ago, the information mentioned may be changed or developed.
    看着大神livid在用jekyll,也学着捣鼓了一下。只是不知为何我输出的中文内容post,在本地浏览却是乱码一片。哪位大神不吝赐教一下,就是按Jekyll-bootstrap这个默认设置的。
    5 replies    1970-01-01 08:00:00 +08:00
    whtsky
        1
    whtsky  
       Mar 11, 2012 via Android
    确认编码是utf-8?
    notedit
        2
    notedit  
       Mar 12, 2012
    编码不对
    hauran
        3
    hauran  
    OP
       Mar 12, 2012
    改哪个文件的编码?怎么改编码,有点乱~
    hauran
        4
    hauran  
    OP
       Mar 13, 2012
    现在更糟糕。居然rake post title=“xxx”,然后 jekyll --server,看不到更新后的日志。。。
    zztczcx
        5
    zztczcx  
       Apr 18, 2012
    我也遇到了这个问题 之前在vim下写中文 是可以的。不知道这次为什么不行,总是出现乱码。
    conversion error from UTF-8 in "iso-8859-1"
    之后locale 了 一下 发现 没有中文支持
    在.bashrc 中 export LANG="zh_CN.UTF-8" 之后 可以了。

    不知道这么改对不对?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2915 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 13:42 · PVG 21:42 · LAX 06:42 · JFK 09:42
    ♥ Do have faith in what you're doing.