Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Non english characters in usernames  (Read 4460 times)

0 Members and 1 Guest are viewing this topic.

Nad_F

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Non english characters in usernames
« on: February 06, 2006, 10:33:51 pm »

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!
 
 
« Last Edit: February 09, 2006, 09:28:49 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Non english characters in usernames
« Reply #1 on: February 07, 2006, 06:41:57 am »

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.
Logged

Nad_F

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Non english characters in usernames
« Reply #2 on: February 07, 2006, 10:28:19 am »

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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Non english characters in usernames
« Reply #3 on: February 07, 2006, 10:30:01 am »

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

Nad_F

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Non english characters in usernames
« Reply #4 on: February 07, 2006, 11:06:08 am »

Logged

Nad_F

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Non english characters in usernames
« Reply #5 on: February 07, 2006, 09:21:26 pm »

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!
Logged

Nibbler

  • Guest
Re: Non english characters in usernames
« Reply #6 on: February 07, 2006, 09:39:28 pm »

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

Nad_F

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Non english characters in usernames
« Reply #7 on: February 07, 2006, 09:55:10 pm »

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!
Logged

Nibbler

  • Guest
Re: Non english characters in usernames
« Reply #8 on: February 07, 2006, 09:57:28 pm »

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.
« Last Edit: February 07, 2006, 10:06:15 pm by Nibbler »
Logged

Nad_F

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Non english characters in usernames
« Reply #9 on: February 07, 2006, 11:53:04 pm »

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

Nibbler

  • Guest
Re: Non english characters in usernames
« Reply #10 on: February 07, 2006, 11:59:04 pm »

include/mb.inc.php
Logged

Nad_F

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Non english characters in usernames
« Reply #11 on: February 08, 2006, 10:58:13 am »

It works, thank you!
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 21 queries.