After importing users with UTF-8 chars in their name or other profile element, on the place of the UTF-8 character not the char self, but a space appears. (Eg. 'Pál' -> 'P l') Is there any solution?

Comments

STNyborg’s picture

Subscribing

DiJae’s picture

Subscribing

Anonymous’s picture

I think the problem is in the line

$username = preg_replace('/[^a-zA-Z0-9@ ]/', ' ', $username);

in user_import.module, which replaces any thing that is not a latin-1 letters or numbers (including all accentued characters) with a space. I solved this problem by replacing this line with

mb_ereg_replace ( '/[^\pL\pN@ ]/' , ' ' , $username );

which does the samething, except that it accepts the UTF-8 (upper and lower case) letters and numbers not only the Latin-1 letters and numbers.

Let me know if this solves the problem in your case too.

robert castelo’s picture

Fixed in 5.x-2.0-beta1.

robert castelo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.