How to deal with windows-1252 encoding in Node
However, it does not render correctly in iTerm, Terminal and Visual Studio Code. It just shows fffd
I think the problem is because of my code, so I change to request and try to play with different options in cheerio but still the problem.
It didn’t take me long to figure it out that the format of the html is
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">