iconv-lite
iconv-lite: Pure JS character encoding conversion
Usage
Basic API
var iconv = require('iconv-lite');
// Convert from an encoded buffer to a js string.
str = iconv.decode(Buffer.from([0x68, 0x65, 0x6c, 0x6c, 0x6f]), 'win1251');
// Convert from a js string to an encoded buffer.
buf = iconv.encode("Sample input string", 'win1251');
// Check if encoding is supported
iconv.encodingExists("us-ascii")Streaming API
Supported encodings
Encoding/decoding speed
BOM handling
UTF-16 Encodings
UTF-32 Encodings
Other notes
Testing
Last updated