Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Croco on April 06, 2008, 04:31:13 PM

Title: custom field bug SMF(B 3 P)
Post by: Croco on April 06, 2008, 04:31:13 PM
SMF Version: 2.0 Beta 3 Public

whenever you try to enter non-english chars as name of the filed it will give you a duplicate entry for the empty string

if you have a filed name that starts with non-english char the col_name will be empty for this field
you can enter it once but after that it will give you error column name not unique

for example:
1-field name: 'تجربة' => col_name => ''
2-field name: 'testتجربة' => col_name => 'test'
3-field name: 'تجربةtest' => col_name => ''

as you can see 1 and 3 cause the problem because col_name is empty string therefore, it won't be a unique entry.

i didn't  add spaces because it doesn't make any difference because they are removed by the code.

I tried Japanese same problem
char-set is UTF-8
Title: Re: custom field bug SMF(B 3 P)
Post by: SleePy on April 06, 2008, 05:17:17 PM
Thank you Bug #1885: Custom Profile Fields do not respect foreign characters (http://dev.simplemachines.org/mantis/view.php?id=1885)
Since mantis won't post the utf-8
First test I did I used: "تجربة"
Second test I used: "تجربةتجربة"
Third test I used: "تجربةتجربةتجربةتجربةتجربة"