diff options
author | Bruno Wagner <bwgpro@gmail.com> | 2014-12-15 16:00:25 -0200 |
---|---|---|
committer | Bruno Wagner <bwgpro@gmail.com> | 2014-12-15 16:00:25 -0200 |
commit | af9868a7080ee0fea7355ae358c1e1766991202c (patch) | |
tree | 4ee1cad69b10f119d17125a9cf8dec49f6b67fd6 /web-ui/app/js/helpers | |
parent | c5e45b28aa99d926ed6f53b8155da56dfb366941 (diff) |
#170 Added UTF-8 encoding to the html body, because the quoted-printable module was messing up encoding otherwise
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 { |