Skip to content
This repository has been archived by the owner on Feb 18, 2020. It is now read-only.

中文编码问题 #12

Closed
binblog opened this issue Dec 30, 2016 · 2 comments
Closed

中文编码问题 #12

binblog opened this issue Dec 30, 2016 · 2 comments

Comments

@binblog
Copy link

binblog commented Dec 30, 2016

您好,我在使用时发现该插件会将中文修改为unicode编码,而在index.js中cheerio.load方法下添加参数:decodeEntities: false,可以避免这个问题
var $ = cheerio.load(data[key], {
ignoreWhitespace: false,
xmlMode: false,
lowerCaseTags: false,
decodeEntities: false
});

参考:https://cnodejs.org/topic/54bdd639514ea9146862ac37, 不知道可不可以修改一下此处。

@xcodebuild
Copy link
Owner

抱歉这么晚才看到,多谢,已经修改。

@mutoe
Copy link

mutoe commented Apr 1, 2017

这个问题在我这里又复现了

node 6.2.2
hexo 3.2.2
hexo-asset-image: 0.0.3
os: Windows_NT 10.0.14393 x64

前来寻求帮助

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

No branches or pull requests

3 participants