|T O P I C R E V I E W
||Posted - 15 Oct 2013 : 01:04:52
We use unicode controls 220.127.116.11. my question is on the maxlength proporty of the entry field controls.
Is there a setting or the like to make this maxlength relate to the utf8 size not unicode size. For example if I have a 10 character field and set the maxlength to 10, this will allow 10 japanese chracters to be entered but when converted to utf8 this will be approx 20 utf8 characters blowing the size of the resulting table field that will store the utf8 data. It would be good if I could set a single length that evaluates on the fly the utf8 length instead of the unicode length.
Are there any properties that allow for this ?
|2 L A T E S T R E P L I E S (Newest First)
||Posted - 21 Oct 2013 : 01:50:37
Thank-you for your response.
||Posted - 15 Oct 2013 : 08:39:34
Sorry, the maxlen property follows common user interface rules, it blocks the maximum lenght of writable characters into the input field.
IMO you need to set the size of your columns to the maxlen property * 3 as an Unicode char can be converted up to 3 ANSI/UTF8 chars.