Should Usernames include emoji?

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.2.x. If you need support for phpBB 3.2.x please visit the 3.2.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
User avatar
hanakin
Infrastructure Team
Infrastructure Team
Posts: 841
Joined: Sat Dec 25, 2010 9:02 pm
Contact:

Should Usernames include emoji?

Post by hanakin » Thu Nov 02, 2017 6:27 pm

Currently we do not support emoji in usernames. Is this something that we should allow if not we should add a better error msg then general sql error which is what happens when you try to register with one.

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1780
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Should Usernames include emoji?

Post by DavidIQ » Thu Nov 02, 2017 6:31 pm

Probably not. Also there are quite a few fields that will clunk out if you put an emoji in them. Username is one of them.
Image

User avatar
david63
Registered User
Posts: 246
Joined: Mon Feb 07, 2005 7:23 am
Location: Lancashire, UK

Re: Should Usernames include emoji?

Post by david63 » Fri Nov 03, 2017 7:53 am

Personally I cannot see any reason as to why you would want an emoji as part of a username and it would mean massive rewrite of the core - how would you create username_clean for example, which is used extensively. I suspect that it would cause more problems than it would solve.

If there is a genuine need for an emoji in a username then I would look at having as a separate field in the database and then appending where necessary.
David
Remember: You only know what you know -
and you do not know what you do not know!

User avatar
Jacob
Registered User
Posts: 100
Joined: Wed Jan 04, 2012 1:41 pm

Re: Should Usernames include emoji?

Post by Jacob » Fri Nov 03, 2017 12:23 pm

Emojis are not written words, so no.

User avatar
Vinny
Style Customisations
Style Customisations
Posts: 127
Joined: Thu May 20, 2010 4:01 am
Location: Brazil
Contact:

Re: Should Usernames include emoji?

Post by Vinny » Sat Nov 04, 2017 8:02 am

No.

I think would be better to focus on using emoji on topic titles, email subject or email message.

User avatar
bonelifer
Community Team
Community Team
Posts: 108
Joined: Mon Jan 31, 2005 10:41 am

Re: Should Usernames include emoji?

Post by bonelifer » Mon Nov 06, 2017 10:01 pm

Agree with david63
+1 for what Vinny said

User avatar
3Di
Registered User
Posts: 733
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano (I) Frankfurt (D)
Contact:

Re: Should Usernames include emoji?

Post by 3Di » Thu Nov 09, 2017 12:15 am

hanakin wrote:
Thu Nov 02, 2017 6:27 pm
Currently we do not support emoji in usernames. Is this something that we should allow if not we should add a better error msg then general sql error which is what happens when you try to register with one.
Not in usernames please, the real matter here is to provide a meaningful error message instead of the rude SQL error indeed.

Since the username along with all the user data required for a new registration are handled by the user_add() function though, there is the place to where to start lurking at one possible solution for this, which at a first glance requires a bit to do in fact.

Another solution could be to replace the emojis entered with NOTHING or a replacement char like I did for an extension of mine. Reference: https://www.phpbb.com/community/viewtop ... &t=2422576

About Vinny's suggestion = +1 by my side as well.
Want to compensate me for my interest? Don't ask me, just do it
I'm available for custom phpBB jobs, you can PM me the details.
New: my Live Board, Extensions and Tools for phpBB - Men at works.

User avatar
AmigoJack
Registered User
Posts: 103
Joined: Wed May 04, 2011 7:47 pm
Location: グリーン ヒル ゾーン
Contact:

Re: Should Usernames include emoji?

Post by AmigoJack » Thu Aug 02, 2018 9:30 am

DavidIQ wrote:
Thu Nov 02, 2017 6:31 pm
quite a few fields that will clunk out if you put an emoji in them
Why is this still an issue? Years ago I started using UTF8MB4 instead of UTF8 in MySQL5/MariaDB10 and migrated all potential text columns, and have not run into any issues so far. After all it's not about supporting Emojis, it's about (fully) supporting Unicode. Also posts with all those Unicode code points can be found by searching for them.

david63 wrote:
Fri Nov 03, 2017 7:53 am
Personally I cannot see any reason as to why you would want an emoji as part of a username and it would mean massive rewrite of the core - how would you create username_clean for example, which is used extensively.
Up to today nobody used it on my board either - after all people also need to be able to "enter" it when logging in, and most will fail when their mind is limited to how the keyboard looks. A rewrite however is not needed, as the cleaned username is already capable of all this - it's not stripped down to ASCII only.


And while we're at it: https://www.phpbb.com/community/memberl ... &start=125 looks like things went wrong in the past, maybe errors thru migration steps.

hubaishan
Registered User
Posts: 13
Joined: Fri Oct 21, 2011 11:29 am

Re: Should Usernames include emoji?

Post by hubaishan » Fri Aug 03, 2018 11:13 am

current version 3.2.2 with postgresql support emoji in usernames

Post Reply