FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Extended letters in user names
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Extended letters in user names [message #39075] Tue, 25 September 2007 14:43 Go to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
Is there a way to support account names with extended character set letters, e.g., umlauts, accents, et al?
Re: Extended letters in user names [message #39080 is a reply to message #39075] Tue, 25 September 2007 18:20 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
All those chars are generally encoded into relevant HTML entities. I suppose if your charset in the browser is UTF8 you could enter that into the user name and have the value be accepted.

FUDforum Core Developer
Re: Extended letters in user names [message #39106 is a reply to message #39080] Fri, 28 September 2007 02:54 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
I have a value of Víe and I want to convert it to V& #237;e, the html entity for Víe, to compare it with another value, that which is stored in fud's database. utf8_decode converts it to Víe, but I want to convert the í to the html entity & #237;. Any thoughts on this?
Re: Extended letters in user names [message #39107 is a reply to message #39106] Fri, 28 September 2007 03:30 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
Okay, I got it.
$login = xmlEntities(htmlentities(utf8_decode($row['name'])));


Scary, but it works. I got the xmlEntities code from http://www.php.net/get-html-translation-table

This converts Víe -> Víe -> V& #237;e without the space.

Back on topic...
Re: Extended letters in user names [message #39120 is a reply to message #39107] Sun, 30 September 2007 16:58 Go to previous messageGo to next message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
xmlEntities, where is this function from?

FUDforum Core Developer
Re: Extended letters in user names [message #39160 is a reply to message #39120] Fri, 05 October 2007 00:58 Go to previous message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
Follow aforementioned link and scroll to:
zohar at zohararad dot com
04-Dec-2006 07:31
"Another way of converting HTML entities into numeric entities..."
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: group-permissions for forums - cannot resolve this matter
Next Topic: How to include a php file before any FUD processing is done?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 03 13:57:50 GMT 2024

Total time taken to generate the page: 0.02108 seconds