Foros de discusión

Liferay 5: LAR export loses i18n?

Bo Maryniuk, modificado hace 13 años.

Liferay 5: LAR export loses i18n?

New Member Mensajes: 2 Fecha de incorporación: 24/03/10 Mensajes recientes
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 hace 13 años.

RE: Liferay 5: LAR export loses i18n?

New Member Mensajes: 2 Fecha de incorporación: 24/03/10 Mensajes recientes
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 hace 13 años.

RE: Liferay 5: LAR export loses i18n?

New Member Mensajes: 7 Fecha de incorporación: 27/11/09 Mensajes recientes
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