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?
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
Comment #1
STNyborg commentedSubscribing
Comment #2
DiJae commentedSubscribing
Comment #3
Anonymous (not verified) commentedI 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.
Comment #4
robert castelo commentedFixed in 5.x-2.0-beta1.
Comment #5
robert castelo commented