Some notes

This commit is contained in:
Bryan Ashby 2016-04-11 20:23:11 -06:00
parent 91e0c44d9d
commit 8f988f5dc1
2 changed files with 2 additions and 1 deletions

View File

@ -473,6 +473,7 @@ function Packet(options) {
try { try {
decoded = iconv.decode(messageBodyBuffer, encoding); decoded = iconv.decode(messageBodyBuffer, encoding);
} catch(e) { } catch(e) {
// :TODO: add log warning here including failure reason
decoded = iconv.decode(messageBodyBuffer, 'ascii'); decoded = iconv.decode(messageBodyBuffer, 'ascii');
} }
//const messageLines = iconv.decode(messageBodyBuffer, encoding).replace(/\xec/g, '').split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/g); //const messageLines = iconv.decode(messageBodyBuffer, encoding).replace(/\xec/g, '').split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/g);