Some notes
This commit is contained in:
parent
91e0c44d9d
commit
8f988f5dc1
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue