Comments (2)
I search so many issue:
self.content = File.read(File.join(base, name), :encoding => "utf-8")
However, why it doesn't work?
- http://44ux.com/blog/2012/10/10/invalid-byte-sequence-in-gbk/
- http://www.duzengqiang.com/blog/post/979.html
- http://www.hiadmin.org/blog-seo/wordpress-utf8-bom
- http://www.zhihu.com/question/20167122
- http://www.cnblogs.com/aleda/articles/Jekyll-in-Windows-following-Chinese-encoding-problem-solutions.html
- http://teddywu.info/blog/2013/03/16/octopress-rake-generate-bug-fix-liquid-exception-invalid-byte-sequence-in-gbk-in-post/
- http://yhzhtk.info/2013/06/04/jekyll-encode.html
from creamidea.github.com.
倒腾了半天,最终终于解决了。原来不是什么编码的问题,而是我以前的垃圾文件的影响。
当然,如果真的是编码的问题,可以参考上面的comment. 我的解决方式,在cmd中先输入
chcp 65001
之后
jekyll serve
我的两个错误是这个样子的:
-
commentsemail.html
估计是org-mode在生成的时候将_误认为下标了。(不过我奇怪的是,为何以前没有这个错误?)
-
{% include footer.html %}
原本这条在archive/index-.html, _layout/doc-.html中,但是这些文件都没有被使用,都是废弃的,我以为没有事,但是这次的罪魁祸首就是他们啊。原来就算不被使用的文件,只要在Jekyll中就会被编译啊!
想知道我如何排除这些的么?
第一个错误是我联系github的工作人员给出的,真是太感谢他们了。这让我想起了以前联系github的两次:一次是想要到icecream这个帐号,还有一次是git-page被标为垃圾,无法被访问。(这个是我后来联系他们才知道的,最终他们主动撤销了那个标志)
第二个错误是跟着:Troubleshooting来做的,一步一步。其实核心的就是安装bundle以及这个command bundle exec jekyll serve
之后就是跟着错误提示一点一点排查啦。
Good luck!
from creamidea.github.com.
Related Issues (20)
- Vuex 的一张图
- 未来十年技术预言
- Python Import Problem HOT 1
- Nodejs 之 Worker 简单分析 HOT 4
- Nodejs 启动分析 HOT 1
- 2021 碎碎念
- 理解数学意义上的排列组合
- JavaScript 内存相关 HOT 1
- JSX 是声明式“语言”
- React v17.0.2 源码分析笔记 HOT 3
- react hydrate 模式
- React18 一些笔记 HOT 9
- webpack 的 __webpack_public_path__ 工作原理
- Rust 外部依赖和被链接 HOT 1
- React Route 中 ErrorBoundary 死循环问题 HOT 2
- React 开发总结
- React Array 检查 Key 原理 HOT 1
- React fiber(HostRoot) payload{element} 的作用
- React 事件处理 HOT 2
- 基于 Homebrew 的 bottle 机制在 Catanalina 安装 tmux
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from creamidea.github.com.