taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.11k stars 107 forks source link

Russian letters are not displayed #113

Closed Keller18306 closed 3 years ago

Keller18306 commented 3 years ago

Chrome: image Parser: image image

taoqf commented 3 years ago

What was going on?

Keller18306 commented 3 years ago

I specified extra headers and the site does not display the full version of the page

taoqf commented 3 years ago

I am really sorry I could not type the words shown in the images and I don't know anything about rassian. I did tests like this:

const html = '<div class="error mn-15-0-0" style="background: rgb(45, 45, 45);padding: 15px 20px;border-radius: 6px">\n                 Я указал Дополнительные заголовки, а сайт не отображает полную версию страницы - 200 (y bac - 3)\n</div>';
        const root = parse(html);
        root.toString().should.eql(html);

and it seems this test works very well.

Keller18306 commented 3 years ago

Your package works great. I was wrong. As I realized that I had opened the topic in vain, I closed it.

Keller18306 commented 3 years ago

I specified extra headers and the site does not display the full version of the page

headers in the 'request' module