Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Chintan Akhani
Unicode Characters in Screen Name?
April 20, 2012 12:33 AM
Answer

Chintan Akhani

Rank: Regular Member

Posts: 111

Join Date: March 13, 2008

Recent Posts

Hi All,

We require to support unicode characters in screen Name, but it doesn't support OOTB. Please provide your views on how can we achieve this?

Thanks,
Chitnan
Sandeep Nair
RE: Unicode Characters in Screen Name?
April 20, 2012 2:02 AM
Answer

Sandeep Nair

Rank: Liferay Legend

Posts: 1721

Join Date: November 5, 2008

Recent Posts

One way can be create a new custom field for user which and use that as screen name instead of Liferay's screename.

Regards,
Sandeep
Vitaliy Koshelenko
RE: Unicode Characters in Screen Name?
April 25, 2012 8:23 AM
Answer

Vitaliy Koshelenko

Rank: Expert

Posts: 287

Join Date: March 25, 2011

Recent Posts

You can create hook on UserLocalServiceImpl class - in validateScreenName method define your own logic of screen name validation.
Hitoshi Ozawa
RE: Unicode Characters in Screen Name?
April 26, 2012 6:48 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Screen name can be used instead of email address to login. Wonder if all will work properly with unicode screen name.
Sandeep Nair
RE: Unicode Characters in Screen Name?
April 27, 2012 5:26 AM
Answer

Sandeep Nair

Rank: Liferay Legend

Posts: 1721

Join Date: November 5, 2008

Recent Posts

Yes Hitoshi that was my concern. Especially the friendly url for user AFIK is created using screen name so it will definitely break that
Chintan Akhani
RE: Unicode Characters in Screen Name?
May 4, 2012 9:54 PM
Answer

Chintan Akhani

Rank: Regular Member

Posts: 111

Join Date: March 13, 2008

Recent Posts

Yes Sandip,

We tried to achieve this by modifying UserLocalServiceImpl class. After that it is allowing us to use unicode characters in screen name but in this case user's public and private page urls are not working, as it contains screen name in it. And not sure whether this change can make any impact on any other functionality or not.

Thanks,
Chintan
Hitoshi Ozawa
RE: Unicode Characters in Screen Name?
May 4, 2012 11:45 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

It will. Not recommended. Liferay was designed to work mainly with latin1 character set. It 18N supported is mainly just because it's written in Java.

I've developed a more I18N version but non-latin1 characters in screen name is not one of the modification I've implemented.
Chintan Akhani
RE: Unicode Characters in Screen Name?
May 5, 2012 12:59 AM
Answer

Chintan Akhani

Rank: Regular Member

Posts: 111

Join Date: March 13, 2008

Recent Posts

Thanks for your reply Hitoshi. So does it mean that we should not do this modification and do continue with Liferay's screenName validation process?
Hitoshi Ozawa
RE: Unicode Characters in Screen Name?
May 5, 2012 6:16 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Yes. Unless you're willing to commit some time to it, I recommend not doing it. This is especially true when you think about versioning up. This is one of the core functionalities and if you modify it, you have to risk not being able to version up in the future. I limit myself to (1) wrapping features around liferay's core functionalities without changing them and to (2) replacing independent classes.

If you've seen liferay version up process at this site (www.liferay.com) , you'll know that it's not a very easy matter. If you've tried versioning up a site like this yourself, you'll know to keep modifications to a manageable level.

The other option is to request liferay.com to support it in the forum. If you can one of the liferay.com developer interested, they may support it.
http://www.liferay.com/community/forums/-/message_boards/category/1108052