question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chinese characters are converted to unicode

See original GitHub issue

before:

<a target="_blank" title="首页"></a>

after:

<a target="_blank" title="&#x9996;&#x9875;"></a>

How to solve this problem…

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
fb55commented, Nov 27, 2014

Cheerio now recognizes the decodeEntities flag, setting it to false should do the trick.

1reaction
yiconecommented, Apr 24, 2015

@fb55 The method has resolved my problem.

.pipe(cheerio({
    run: function($, file) {},
    parserOptions: {
        decodeEntities: false
    }
}))

Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert Chinese characters to Unicode - Pinyin.info
This tool will convert Chinese characters (and just about everything else, including Japanese hiragana, katakana, and kanji; tonal Hanyu Pinyin; and Cyrillic ...
Read more >
Unicode to chinese - Chinese Converter
Chinese Tool to Convert Unicode to Chinese. ... Without Unicode, Chinese characters will display weirdly or have boxes in place of text like...
Read more >
Chinese to Unicode Converter
Chinese to Unicode Converter. Link to General Diacritic Screen. Purpose: This page is a PC utility to show the hex codes and their...
Read more >
Chinese to Unicode - Free Online Tools : Converter
Chinese to Unicode - Free Online Tools : Converter. Get the unicode version of a text written in chinese characters.
Read more >
How can I find out the encoding of this corrupted Chinese text ...
The characters in the corrupted text have the following hex ... Simplified Chinese cp936 value can then be mapped to its Unicode code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found