留言板

add-user request via URL with special characters

Cesar Rodriguez,修改在6 年前。

add-user request via URL with special characters

New Member 帖子: 5 加入日期: 17-10-12 最近的帖子
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,修改在6 年前。

RE: add-user request via URL with special characters

Liferay Legend 帖子: 2416 加入日期: 10-12-22 最近的帖子
Hi Caesar,

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