diff options
Diffstat (limited to 'web-ui/app/js/helpers')
-rw-r--r-- | web-ui/app/js/helpers/view_helper.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/web-ui/app/js/helpers/view_helper.js b/web-ui/app/js/helpers/view_helper.js index 841a1077..72ced4af 100644 --- a/web-ui/app/js/helpers/view_helper.js +++ b/web-ui/app/js/helpers/view_helper.js @@ -19,9 +19,10 @@ define( 'helpers/contenttype', 'lib/html_whitelister', 'views/i18n', - 'quoted-printable/quoted-printable' + 'quoted-printable/quoted-printable', + 'utf8/utf8' ], - function(contentType, htmlWhitelister, i18n_lib, quotedPrintable) { + function(contentType, htmlWhitelister, i18n_lib, quotedPrintable, utf8) { 'use strict'; function formatStatusClasses(ss) { @@ -52,7 +53,7 @@ define( var body; if (isQuotedPrintableBodyPart(bodyPart)) { - body = quotedPrintable.decode(bodyPart.body); + body = utf8.decode(quotedPrintable.decode(bodyPart.body)); } else if (bodyPart.body) { body = bodyPart.body; } else { |