| Author |
Message |
kenoodo Lifeless Person
Joined: 17 Jul 2005 Posts: 1092 Location: MengDai
|
Posted: Mon Feb 18, 2008 12:09 am Post subject: can't add non-english user name in wordpress |
|
|
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
|
Posted: Mon Feb 18, 2008 12:32 am Post subject: |
|
|
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 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  _________________ Rashy! |
|
| Back to top |
|
| |
ClickFanatic Est. 2005

Joined: 18 Jan 2005 Posts: 3980 Location: A particular geographic area
|
Posted: Mon Feb 18, 2008 10:19 am Post subject: |
|
|
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
|
Posted: Tue Feb 19, 2008 9:15 pm Post subject: |
|
|
| 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
|
Posted: Wed Feb 20, 2008 5:17 am Post subject: |
|
|
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
|
Posted: Wed Feb 20, 2008 7:58 am Post subject: |
|
|
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 |
|
| |
|
|
|