I'm trying to parse XML file in Node with xml2js
library.
The issue is that the file encoding is windows-1250
instead of utf-8
.
So when I try to get the values it contains wrong characters.
For example, instead of ř
I get Ĺ™
.
How can I convert the xml file or the string values to utf-8 in Node?