用 jekyll
处理带有中文标题的文件会报错
[2012-07-02 23:38:10] ERROR ArgumentError: invalid byte sequence in US-ASCII
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpservlet/filehandler.rb:353:in `fnmatch'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpservlet/filehandler.rb:353:in `block in nondisclosure_name?'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpservlet/filehandler.rb:352:in `each'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpservlet/filehandler.rb:352:in `nondisclosure_name?'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpservlet/filehandler.rb:293:in `check_filename'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpservlet/filehandler.rb:305:in `shift_path_info'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpservlet/filehandler.rb:281:in `set_filename'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpservlet/filehandler.rb:236:in `exec_handler'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpservlet/filehandler.rb:171:in `do_GET'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpservlet/abstract.rb:35:in `service'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpservlet/filehandler.rb:167:in `service'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/home/zhu/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
localhost - - [02/Jul/2012:23:38:10 CST] "GET /2012/07/02/%E7%BF%BB%E8%AF%91.html HTTP/1.1" 500 313
仔细看,好像又是 webrick
的问题。
我还找到一个相关的 issue https://github.com/mojombo/jekyll/pull/531。
请问大家有什么办法解决这个问题?