Foros de discusión
how to read umlaut with locale = "en"
Juan Cuesta, modificado hace 11 años.
how to read umlaut with locale = "en"
New Member Mensajes: 14 Fecha de incorporación: 7/05/12 Mensajes recientes
Hi People, maybe this is a simple question but i didnt found any solution to this,
I set the locale to "en", and when I read a parameter from a form, using ParamUtil.getString(), that contains a character like ü, ö or ä it returns wierd characters like ü. Anyone knows how to fix it???
Thanks in advance.
I set the locale to "en", and when I read a parameter from a form, using ParamUtil.getString(), that contains a character like ü, ö or ä it returns wierd characters like ü. Anyone knows how to fix it???
Thanks in advance.
Hitoshi Ozawa, modificado hace 11 años.
RE: how to read umlaut with locale = "en"
Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
I think this is the problem others have also raised. Unfortunately, there isn't a solution from liferay.com about it. I think they're not able to fix it.
Rameez Mohammed, modificado hace 11 años.
RE: how to read umlaut with locale = "en"
New Member Mensajes: 20 Fecha de incorporación: 30/09/09 Mensajes recientes
Juan,
You can directly get the locale from themeDisplay.getLocale() ..
You can directly get the locale from themeDisplay.getLocale() ..
Rameez Mohammed, modificado hace 11 años.
RE: how to read umlaut with locale = "en"
New Member Mensajes: 20 Fecha de incorporación: 30/09/09 Mensajes recientes
You can use like this.
String languageId=themeDisplay.getLocale().toString();
String languageId=themeDisplay.getLocale().toString();
Juan Cuesta, modificado hace 11 años.
RE: how to read umlaut with locale = "en"
New Member Mensajes: 14 Fecha de incorporación: 7/05/12 Mensajes recientesRameez Mohammed:
You can use like this.
String languageId=themeDisplay.getLocale().toString();
I've added that line to my code in order to check what is going on. And this what I've found:
In both cases im using locale = "en_US";
I got the error when I use some kind of URL mapping, prepending /en, /es or whatever to the URL. Even with /de fails, so have to be a I18n Servlet issue.