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

中文转码问题 #13

Closed
binblog opened this issue Dec 25, 2016 · 3 comments
Closed

中文转码问题 #13

binblog opened this issue Dec 25, 2016 · 3 comments

Comments

@binblog
Copy link

binblog commented Dec 25, 2016

为什么我的search.xml中文会被html转码?像“中国”是"& # x 4 E 2 D ; & # x 5 6 F D ;"

@binblog binblog changed the title 中主转码问题 中文转码问题 Dec 25, 2016
@binblog
Copy link
Author

binblog commented Dec 25, 2016

是我hexo的问题吗

@binblog
Copy link
Author

binblog commented Dec 25, 2016

应该是hexo的问题。
我生成的html中,中文也是被转码后的,和这个问题一样:hexojs/hexo#657
目前使用了
var he = require('he');
he.decode(str);
进行处理。

@binblog binblog closed this as completed Dec 25, 2016
@binblog
Copy link
Author

binblog commented Dec 30, 2016

我这边找到原因了,是使用了hexo-asset-image这个插件,插件中使用了cheerio导致的

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

No branches or pull requests

1 participant