Non english characters in usernames Non english characters in usernames
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Non english characters in usernames

Started by Nad_F, February 06, 2006, 10:33:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nad_F

Hello!
Tell me please, can I allow users to use usernames with non English letters? Where I need to enter needed characters?
Beforehand many thanks!


Joachim Müller

yes, you can enter non-ascii chars as usernames. I don't understand the second part of your question - you enter the name using your keyboard, with encoding set to your language as well as keyboard layout. There have been issues with chinese usernames in the past though, but I don't remember what exactly happened and if/how it was fixed.

Nad_F

Hello!
When users in our gallery trying to register with russian usernames they got a message that username must be longer than 2 characters. I think I need to add russian characters in the the script where listed allowed characters for usernames.
Beforehand many thanks!

Joachim Müller

post a link to your page, I guess you're using an outdated version - the 2 char warning sounds familiar...


Nad_F

I use Coppermine 1.4.3 (stable), which I've downloaded from http://sourceforge.net/project/showfiles.php?group_id=89658.
Help me please to allow users to use russian characters in usernames.
Beforehand many thanks!

Nibbler

You need to switch to utf8 encoding for the string length functions to work properly.

Nad_F

I can not switch encoding to UTF-8 because whole site with a JS-menu in WIndows-1251, if I switch to UTF-8 I got problems.
Can I solve this problem without changing encoding?
Thank you!

Nibbler

#8
Sure, just rewrite Coppermine's utf_* functions to work with your encoding instead.

- You might be able to do something if you can get the mbstring extension installed.

Nad_F

Cool;) Tell me please, in what file I can rewrite Coppermine's utf_* functions?
Thanks!

Nibbler


Nad_F