Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISO88591_MAP_ENCODED is not defined #89

Closed
philippe-granet opened this issue Apr 20, 2016 · 3 comments
Closed

ISO88591_MAP_ENCODED is not defined #89

philippe-granet opened this issue Apr 20, 2016 · 3 comments

Comments

@philippe-granet
Copy link

Mails encoded with ISO8859 doesn't display correctly, i've got this javascript error:

angular-1.3.8.js:11594 ReferenceError: ISO88591_MAP_ENCODED is not defined
    at maybeInitIso88591Maps (strutil.js:392)
    at convertIso88591BytesToUnicodeCodePoints (strutil.js:487)
    at convertBytesToUnicodeCodePoints (strutil.js:727)
    at unescapeFromMime (strutil.js:985)
    at Scope.$scope.tryDecodeMime (controllers.js:161)
    at $parseFunctionCall (angular-1.3.8.js:12332)
    at Object.expressionInputWatch (angular-1.3.8.js:12735)
    at Scope.$digest (angular-1.3.8.js:14217)
    at Scope.$apply (angular-1.3.8.js:14488)
    at EventSource.<anonymous> (controllers.js:142)

I think some js dependencies are missing (iso88591_map.js and sjis_map.js), in /assets/js/strutil.js:

// Requires: sjis_map.js should be loaded.
function maybeInitSjisMaps() {
  maybeInitMaps(SJIS_MAP_ENCODED, SJIS_TO_UNICODE, UNICODE_TO_SJIS);
}

var ISO88591_TO_UNICODE = {}
var UNICODE_TO_ISO88591 = {}
// Requires: iso88591_map.js should be loaded.
function maybeInitIso88591Maps() {
  maybeInitMaps(ISO88591_MAP_ENCODED, ISO88591_TO_UNICODE,
                UNICODE_TO_ISO88591);
}
@arnou
Copy link

arnou commented Jul 4, 2016

My fields subject and from don't display correctly too :

2016-07-04 18_49_07-clipboard

@ian-kent
Copy link
Member

thanks @philippe-granet

@arnou not sure if that is related to this problem, if it still happens after the next release could you open a new issue and include MailHog server logs

@jtrancas
Copy link

jtrancas commented Mar 2, 2017

I'm still getting this exact issue when using the latest release. I'm using the linux binaries, I'm not being able to find the commited changes on the deployed js files. It looks like the build doesn't get those js files included on the layout.html template. I'm not being able to provide a fix because I don't know the platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants