Hi all,
I have a problem with username string and path's name. Some user of my site have a username with an accent (like "Kévin" or "émilie"). In the data paths of my server, the accent is preserved but all links are brokes and avatars are not displayed. It seems like an unicode problem. How can i solve this problem? Thanks ;)
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- Kevin Jardine@kevin

Kevin Jardine - 0 likes
- Gpx18@Gpx18

Gpx18 - 0 likes
- morgar@morgar

morgar - 0 likes
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- Kevin Jardine@kevin

Kevin Jardine - 0 likes
- morgar@morgar

morgar - 0 likes
You must log in to post replies.old problem ;-O) -- no solution yet. seen with e.g. hebrew lang based sites..
try rest with php script on yr server
mkdir ("accented folder name",...) & then create a test file
-- see if it allows.
For the time being, I think the best solution is to restrict usernames to ASCII letters and numbers only.
I think that Elgg should probably be enforcing this on the registration page.
Display names should take anything.
Okay! thanks a lot Dhrup and Kevin ;)
Hi. I think the problem has already been solved. There is a php utf8_to_ascii library that does the trick. It converts the utf8 characters to the closest ASCII equivalent (á to a, for a basic example). We are using it on our site for converting users full name to a SEO friendly url, without loosing the non ASCII chars. I believe it can manage non latin alphabets like russian.
More info here -> http://www.sitepoint.com/blogs/2006/03/03/us-ascii-transliterations-of-unicode-text/
(sorry about my bad english)
@Carlos
cool -- I have not visited sitePoint recently ;-(
Hi Morgar,
Very good news!
Could you possibly post your solution to Trac?
I know that Curverider staff are hard at work on the next release and this kind of practical solution would be welcome I think.
I had some experience with phpbb and I think it has solved all those problems. May be Curverider staff should take a look there =)
There could be a problem if you allow -for example- usernames with the same characters, but different accents, like angel angel and ángel (as phpbb does). If you convert it to a url using the utf8_to_ascii library, both will be converted to angel and you will get a name collision.
I didn't use the Trac yet, but I will do it.