Last active
September 16, 2016 19:12
-
-
Save ryush00/6f5ce9bfb65e299454deb4b3ff7c203a to your computer and use it in GitHub Desktop.
KS_C_5601-1987 decode example (https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
http.get(url, function(res) { | |
res.pipe(iconv.decodeStream('KS_C_5601-1987')).collect(function(err, decodedBody) { | |
console.log(decodedBody); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment