solved Profile name with character "é" , the "e" is removed from the URL

iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
When a user name with "é" is used, the "e" is dropped from the url.

Is there a way to rectify that?
updated by @ilovehousemusic: 05/04/14 12:06:00AM
michael
@michael
10 years ago
7,715 posts
The system is stripping any non alphnumeric characters because they are not allowed in the url.

If you knew what possilbe replacements were for the characters you wanted, it might be possile to create a quick module to listen for them and replace the ones you know é with one you want it to be 'e'.

right now by default, its alphanumeric.
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
I understand. Any plans to address that at the core level?
brian
@brian
10 years ago
10,148 posts
iLoveHouseMusic:
I understand. Any plans to address that at the core level?

No - that character is not a valid URL character, so cannot be used in a URL.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
brian:

No - that character is not a valid URL character, so cannot be used in a URL.

I understand that part, what I mean is, are there any plans to have a built in mechanism to replace the charcters. So that, a user could use é in their profile name, and their URL will automatically show "e".
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
You've got a spanish language translation and language file... what happens when a user with a "ñ" signs up? They will report the same thing...
brian
@brian
10 years ago
10,148 posts
The problem is that "é" is not an "e" - they just happen to look the same under the accent, but internally they are separated by a mile in the UTF-8 character map.

JR already tries to "convert" as many of the characters as it can (mainly ISO-8859-1) chars, but if it can't, then it removes it since the characters is not URL safe.

EDIT: wanted to make sure you know that the profile name will render right - this is strictly for the profile URL. Also - "rawurlencode" can be used to handle these characters for the most part, but not all browsers support it properly.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 03/21/14 10:19:12AM
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
That explanantion makes sense. I do see the profile name rendering correctly.

I'll probably revisit this:
https://www.jamroom.net/the-jamroom-network/forum/suggestions/7986/profile-url-vs-profile-display-name

Giving the user the ability to control their profile display name, and then relabel "profile name" as "profile url".

Thanks! You can close this
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
Curious - how do other systems / socialnetworks handle that?
brian
@brian
10 years ago
10,148 posts
iLoveHouseMusic:
Curious - how do other systems / socialnetworks handle that?

Probably very similar to how JR does it - the function JR uses to create the "slug" is very similar to the one used in Wordpress. Some sites may allow an all "rawurlencoded" URL, but if the browser does not support it then it looks really bad.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
iLoveHouseMusic:
Giving the user the ability to control their profile display name, and then relabel "profile name" as "profile url".

You can do that yourself with the form designer. Just make a new field called "profile_display_name" (or whatever) and then just use that in the profile for the display name, and use profile_name as the URL.

If it was me I would not do that, but that's up to you.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
@Brian - I follow. thanks for the detailed explanation!

Tags