I'm having an issue while encoding an email body using utf8
and quoted-printable
bodyHtml = utf8.decode(quotedPrintable.decode(resData['body-html']));
In heroku logs, it says
2017-05-04T05:49:54.312348+00:00 app[consumerWorker.1]:
/app/node_modules/utf8/utf8.js:194
2017-05-04T05:49:54.312360+00:00 app[consumerWorker.1]: throw
Error('Invalid UTF-8 detected');
2017-05-04T05:49:54.312362+00:00 app[consumerWorker.1]: ^
2017-05-04T05:49:54.312362+00:00 app[consumerWorker.1]:
2017-05-04T05:49:54.312363+00:00 app[consumerWorker.1]: Error: Invalid
UTF-8 detected
I have created a runkit, https://runkit.com/kiranlm/590abc3746b5b70012ffd7f8