I
I
Ivan Zhilnikov2018-12-23 14:00:37
JavaScript
Ivan Zhilnikov, 2018-12-23 14:00:37

How to convert html page from cp1251 to utf8 on nodejs?

I'm trying to parse the site, the page is encoded in cp1251, when outputting, I get diamonds with question marks inside, I tried using iconv-lite but the result is the same, I tried to get data both through http and request. Tell me how else to try

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Zhilnikov, 2018-12-23
@zhiliv

I solved the problem with the help of superagent-charset

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question