Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中文乱码 #104

Closed
myth-ye opened this issue Mar 3, 2013 · 10 comments
Closed

中文乱码 #104

myth-ye opened this issue Mar 3, 2013 · 10 comments
Labels
question Needs help in usage

Comments

@myth-ye
Copy link

myth-ye commented Mar 3, 2013

版本1.0.4
windows
中文乱码
请教下怎么解决?

@tommy351
Copy link
Member

tommy351 commented Mar 3, 2013

檔案請使用 UTF-8 編碼

@myth-ye
Copy link
Author

myth-ye commented Mar 3, 2013

.md文件和config.yml的编码都是ansi。但是生成的html编码是UTF-8

@myth-ye
Copy link
Author

myth-ye commented Mar 3, 2013

config.yml如果把编码改掉,运行hexo就什么都不显示了。

@tommy351
Copy link
Member

tommy351 commented Mar 3, 2013

修改文章編碼試試看吧?

@myth-ye
Copy link
Author

myth-ye commented Mar 3, 2013

.md文章的编码改了之后可以正常显示,但是config.yml改编码就无法运行了..

@tommy351
Copy link
Member

tommy351 commented Mar 4, 2013

試試這個?

set LC_ALL=zh_CN.UTF-8
set LANG=zh_CN.UTF-8

@myth-ye
Copy link
Author

myth-ye commented Mar 8, 2013

不行..

@tommy351
Copy link
Member

使用 UTF-8 without BOM 編碼試試看?

tommy351 added a commit that referenced this issue Mar 10, 2013
@myth-ye myth-ye closed this as completed Apr 3, 2013
zhipengyan pushed a commit to zhipengyan/hexo that referenced this issue Apr 4, 2016
@zhishengzhang
Copy link

请问hexo中文乱码问题解决了吗?

@ethanyu336
Copy link

apache里
AddDefaultCharset 改成UTF-8 即可解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Needs help in usage
Projects
None yet
Development

No branches or pull requests

4 participants