How to create Pen N...
 
Notifications
Clear all

How to create Pen Name with Non-English Unicode Characters

3 Posts
3 Users
0 Reactions
1,140 Views
(@chikkoo)
Posts: 1
New Member
Topic starter
 

Hi..

Most of the Authors in my website always wants to use Unicode characters to create their Pen Name.

I am trying to create a Pen Name in Unicode format but I always get error saying "Sorry! Usernames can only contain letters , numbers, underscores, hyphens, or spaces, and must be between 3 and 20 characters long".

How do you I create an Unicode Pen Name?

Experts kindly advise me.

Thanks

Chikkoo


 
Posted : 08/05/2009 6:01 am
(@babaca)
Posts: 722
Member Moderator
 

I haven't done this so...Test it and if it doesn't work... change it back and wait for an expert.

I believe you have to go into phpmyadmin; select your database that is running efiction
Click on operations and change the Collation at the bottom of the screen from latin1_swedish_ci to utf8_unicode_ci (I think).

It may be worth a try. I'm not sure if there is any lines in the efiction script that mentions collation or charactersets.


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 08/05/2009 12:28 pm
(@tammy)
Posts: 2577
Member Moderator
 

You need to edit user/editbio.php and remove the following line:


else if($penname && !preg_match("!^[a-z0-9-_ ]{3,30}$!i", $penname)) $output .= "<div style='text-align: center;'>"._BADUSERNAME."</div>";

However, I would STRONGLY encourage you to tell them too bad.  The reason usernames are limited as they are in the first place is to prevent hacking and other not-so-nice behavior from users. You're also limited to 30 characters for the username. 


 
Posted : 08/05/2009 4:27 pm
Share: