Skip to content

Instantly share code, notes, and snippets.

@raine
Created June 1, 2015 09:16

reading a file with ISO-8859-1 encoding in node.js

npm install iconv-lite
var fs = require('fs');
var iconv = require('iconv-lite');
iconv.decode(fs.readFileSync('file.txt'), 'iso-8859-1');
@bessa3301
Copy link

❤️ ценить это

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment