使用 cheerio 有没有出现过乱码的情况
发布于 11 年前 作者 surgit 14344 次预览 最后一次回复是 9 年前 来自
https://github.com/MatthewMueller/cheerio
有没有出现过中文乱码的。
<meta name="keywords" content="乐趣!!">
我自己用的时候会出现 一些中文 转为unicode
5 回复
https://github.com/MatthewMueller/cheerio
有没有出现过中文乱码的。
<meta name="keywords" content="乐趣!!">
我自己用的时候会出现 一些中文 转为unicode
主要是title 和 alt属性这些 会编程 unicode 编码,,求助。
var $ = cheerio.load(htmlStr, {decodeEntities: false});
先转码吧。
递
true-html-escape不谢:https://www.npmjs.com/package/true-html-escapecheerio = Fast, flexible, and lean implementation of core jQuery designed specifically for the server.
有点意思
@xadillax 谢谢