Fórum

Liferay 5: LAR export loses i18n?

Bo Maryniuk, modificado 13 Anos atrás.

Liferay 5: LAR export loses i18n?

New Member Postagens: 2 Data de Entrada: 24/03/10 Postagens Recentes
Hi!
I composed a home for users, put i18n translation and then exported it as a LAR. After import LAR back, instead of non-English I just got questionmarks, like "?????????".

Is this a known bug?

Thank you.
Bo Maryniuk, modificado 13 Anos atrás.

RE: Liferay 5: LAR export loses i18n?

New Member Postagens: 2 Data de Entrada: 24/03/10 Postagens Recentes
Update
Yes, it is a horrid bug: LAR is already exported with screwed up encoding. In the XML I see something like this:
<name language-id="foo_BAR">???????</name>


Whooaa!! Nobody noticed yet!?
thumbnail
Bo M. Maryniuk, modificado 13 Anos atrás.

RE: Liferay 5: LAR export loses i18n?

New Member Postagens: 7 Data de Entrada: 27/11/09 Postagens Recentes
OK, here what should be done (Unix):

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"


The point is to run the appserver on locale with UTF-8 encoding. Second, I also gave appserver an option "file.encoding" that points to "utf8" (just to be sure). Now it works fine. However, I think Zip writer should put this by default, overriding everything from the system!!! emoticon