Foros de discusión

add-user request via URL with special characters

Cesar Rodriguez, modificado hace 6 años.

add-user request via URL with special characters

New Member Mensajes: 5 Fecha de incorporación: 12/10/17 Mensajes recientes
Greetings, I am using liferay (6.2 ga5) api/jsonws to register users from an external java based module (independent from liferay) in my server. The url works fine until I try to add users with special characters in their names. For example:
https://liferayaddress:port/api/jsonws/user/add-user/-company-id/0/auto-password/true/[...]last-name/Müller/prefix-id/[...]/send-email/true
The user is correctly saved, however the last-name property is saved with the corresponding Latin-1 characters:
ä : ä
ö: ö
ü: ü (and so on).
I've tried encoding the url with utf-8 and ascii, but the only difference was that the user in liferay was saved with the corresponding encoding characters.

Any ideas on how to address this situation?
thumbnail
Andrew Jardine, modificado hace 6 años.

RE: add-user request via URL with special characters

Liferay Legend Mensajes: 2416 Fecha de incorporación: 22/12/10 Mensajes recientes
Hi Caesar,

ONLY the last name field has these characters? Have you checked the collation in the database?