Fórumok

Displaying Umlauts in Portlet

Bernd Dose, módosítva 9 év-val korábban

Displaying Umlauts in Portlet

New Member Bejegyzések: 17 Csatlakozás dátuma: 2014.10.01. Legújabb bejegyzések
Hello,

I want to display Umlauts in my Portlet. I am using native2ascii in order to encode my umlauts so my property file looks something like this:

key=This is a test with some Umlauts like \u00e4 \u00f6 \u00fc


However in the portlet the umlauts are displayed as symbols like this � .

The encoding for my property file is US-ASCII.

I know that I can somehow make it work with encoding UTF-8 and writing the actual Umlauts in the property file but I actually need to use native2ascii.

Any help is appreciated.

Thanks
Bernd
thumbnail
Olaf Kock, módosítva 9 év-val korábban

RE: Displaying Umlauts in Portlet

Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
Liferay's properties files need to be UTF-8 encoded. If you use any other encoding, you'll run into exactly the issues that you describe.

If you want to work with the native2ascii tool, you'll need to maintain your differently encoded properties files in a way that Liferay doesn't use them and generate one from the other.
Bernd Dose, módosítva 9 év-val korábban

RE: Displaying Umlauts in Portlet

New Member Bejegyzések: 17 Csatlakozás dátuma: 2014.10.01. Legújabb bejegyzések
Ok, thanks a lot for the explanaition