Hello,
I'm having trouble reading windows-1250 encoded data. I'm using http request node to download a .csv file which is encoded in windows-1250. I thought I could read it as a binary buffer and then parse the byte array to string. I tried using TextDecoder() to decode it in function node, but it gives me "ReferenceError: TextDecoder is not defined (line 1, col 19)". Am I missing an import somewhere or what am I doing wrong and how can I solve this?
I managed to import the library as you said, thank you. Now the problem is, it says the "windows-1250" encoding is not supported. I found this and If I understand correctly I can do nothing about it other than re-compile the library?