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