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

UTF-8 encoding not working in WAR #12

Open
mugren opened this issue Jul 12, 2016 · 2 comments
Open

UTF-8 encoding not working in WAR #12

mugren opened this issue Jul 12, 2016 · 2 comments

Comments

@mugren
Copy link

mugren commented Jul 12, 2016

Hi,

The i18n files that have translations which need utf-8 encoding are not appropriately encoded when they are compiled for war, however that's not case in dev mode.

I suspect that the problem emerges when the messages are loaded in the I18nProcessor with the resource locator.

This is what I get

(function (win) {
var messages = {
"passwords.not.equal": "�озинки�е не �е �овпа�аа�",
"passwords.equal": "�озинки�е �е �овпа�аа�",
"popup.add": "�одади",
"popup.update": "�ж��и�а�",
"popup.cancel": "��кажи",
"popup.alert.title": "�али ��е �иг��ни?",
"popup.alert.message": "��омени�е во �о�ма�а не �е �о��вани!",
"alert.title": "��ед�п�ед�ва�е",
"alert.message": "�ополне�е ги задолжи�елни�е поли�а!",
"alert.error.title": "�а��ана г�е�ка",
"alert.error.message": ""�е��о ��гна наопак�..."",
"alert.ok": "�о�в�ди",
"alert.cancel": "��кажи",
"activity.activity.label": "�к�ивно��",
"activity.alertWarning.label": "��ед�п�ед�ва�е за ак�ивно��",
"activity.alertContinues.label": "п�одолж�ва...",
"activity.alertStatus.label": "���",
"default.popupAttention.label": "�нимание",
"default.popupButtonOk.label": "�об�о",
"language.label": "mk",
"calendar.month.jan.label": "�ан",
"calendar.month.feb.label": "Феб",
"calendar.month.mar.label": "�а�",
"calendar.month.apr.label": "�п�",
"calendar.month.may.label": "�а�",
"calendar.month.jun.label": "��н",
"calendar.month.jul.label": "��л",
"calendar.month.aug.label": "�вг",
"calendar.month.sep.label": "Сеп",
"calendar.month.oct.label": "�к�",
"calendar.month.nov.label": "�ое",
"calendar.month.dec.label": "�ек",
"calendar.month.jan.full.label": "�ан�а�и",
"calendar.month.feb.full.label": "Фев��а�и",
"calendar.month.mar.full.label": "��",
"calendar.month.apr.full.label": "�п�ил",
"calendar.month.may.full.label": "�а�",
"calendar.month.jun.full.label": "��ни",
"calendar.month.jul.full.label": "��ли",
"calendar.month.aug.full.label": "�вг���",
"calendar.month.sep.full.label": "Сеп�емв�и",
"calendar.month.oct.full.label": "�к�омв�и",
"calendar.month.nov.full.label": "�оемв�и",
"calendar.month.dec.full.label": "�екемв�и",
"calendar.day.mo.label": "�он",
"calendar.day.tu.label": "��о",
"calendar.day.we.label": "С�е",
"calendar.day.th.label": "Че�",
"calendar.day.fr.label": "�е�",
"calendar.day.sa.label": "Саб",
"calendar.day.su.label": "�ед"
}

win.$L = function (code) {
    return messages[code];
}

}(this));

@warnerandy
Copy link

i'm currently running into this issue as well, are there any plans on fixing it?

@mugren
Copy link
Author

mugren commented Dec 15, 2017

I've opened PR long time ago about this issue #14

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

2 participants