N
N
Neuro2020-06-23 15:55:56
JavaScript
Neuro, 2020-06-23 15:55:56

How to get win1251 encoded file?

Good afternoon, it became necessary to create a file in win1251 encoding on nodejs, here's what I do and what I get: Result
code I use the iconv-lite library, as you can see on the second screen, as a result, a file is created in iso-8859 format and cracks appear in place of the text. Maybe someone knows how to fix this or how to end up with a file in win1251 format? 5ef1fb36c033f326990463.png
5ef1fb4f676bf774929085.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question