Lifelesspeople.com

 Forum FAQsForum FAQs  Knowledge BaseKnowledge Base  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   HostingHosting   RegisterRegister 
 DonateDonate   WikiWiki   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

can't add non-english user name in wordpress

 
Lifelesspeople.com Forum Index -> Help Wanted
Post new topic   Reply to topic View previous topic :: View next topic  
Author Message
kenoodo
Lifeless Person


Joined: 17 Jul 2005
Posts: 1092
Location: MengDai

PostPosted: Mon Feb 18, 2008 12:09 am    Post subject: can't add non-english user name in wordpress Reply with quote

When I try to add a non-English(Chinese) user in WordPress, get a warning that This username is invalid.

I tried times, but still don't know what the problem is.
Back to top
 
Rashy
Lifeless Person


Joined: 25 Sep 2006
Posts: 680


PostPosted: Mon Feb 18, 2008 12:32 am    Post subject: Reply with quote

Is there a Chinese language pack for Wordpress that might fix the issues? If not, you would have to hack the core (I might be able to help you out a little bit with this) to allow the database to accept non ascii characters.

Just a question, how do you create the Chinese characters for the posts that you write? I know this sounds stupid Silly What does your keyboard look like? It can't possibly have every Chinese character (there are a couple thousand, correct?). Just need to know to come up with a solution Wink
_________________
Rashy!
Back to top
 
ClickFanatic
Est. 2005


Joined: 18 Jan 2005
Posts: 3980
Location: A particular geographic area

PostPosted: Mon Feb 18, 2008 10:19 am    Post subject: Reply with quote

The username is what the user uses to log in. Usernames in Wordpress can only contain basic ASCII characters. This is not controlled by the active localisation.

I am not sure about real names, but I think you can use foreign characters in them.
_________________
Captain Jell-O Buster from the Future
[img]http://feeds.feedburner.com/sparepencil.1.gif[/img]
Back to top
 
krt
...


Joined: 11 Jan 2005
Posts: 4709
Location: Down Under

PostPosted: Tue Feb 19, 2008 9:15 pm    Post subject: Reply with quote

I believe it is a technical limitation relating to multi-byte characters such as Chinese characters. The root of the reason is probably laziness in the initial implementation and too much work to test and change now or a belief that such characters would be a pain for administrators.
Back to top
 
kenoodo
Lifeless Person


Joined: 17 Jul 2005
Posts: 1092
Location: MengDai

PostPosted: Wed Feb 20, 2008 5:17 am    Post subject: Reply with quote

Thank guys.

Yeah, there is a Chinese language pack, and that makes the WordPress a little easy to use. But seems it is a bug or something that WP dose not accept Chinese characters for log in ID.

Now I have to assign English names or PinYin names for the writers on my site and add Nicknames for them who want to use their Chinese names show with their articles.

As to input Chinese, we use Chinese input method. It is a input program, you can type in PinYin or other methods, and this program translate what you type into Chinese. That means the Chinese character is break down into codes, which contain 2 to 5 letters ( a to z). And the same key board you are using can handle all these thousands of Chinese characters.

And for the Chinese log in name, I think it the problem of WP, and the Nickname is also acceptable.
Back to top
 
ClickFanatic
Est. 2005


Joined: 18 Jan 2005
Posts: 3980
Location: A particular geographic area

PostPosted: Wed Feb 20, 2008 7:58 am    Post subject: Reply with quote

I don't think it's a bug. I think it was done intentionally. Either way, it's hard-coded in the sanitize_user() function, so there is no way round it.
_________________
Captain Jell-O Buster from the Future
[img]http://feeds.feedburner.com/sparepencil.1.gif[/img]
Back to top
 
Display posts from previous:   
Post new topic   Reply to topic    Lifelesspeople.com Forum Index -> Help Wanted All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Home | Hosting | News | Forum | Links | System Status | About | Archive | Donate ]
Powered by phpBB © 2001, 2002 phpBB Group
All trademarks and copyrights on this page are owned by their respective owners. Posts and comments are owned by the poster. Everything else © 2001 - 2007 Lifelesspeople.com