Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Other hexagora products
 Programs (Programmi)
 [HELP] maxlength
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sfi_dev
Practical

37 Posts

Posted - 15 Oct 2013 :  01:04:52  Show Profile  Visit sfi_dev's Homepage  Reply with Quote
Hi there,

We use unicode controls 3.1.0.18. 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 ?

Thank-you

Sfi_dev

s.dav
Site Admin

Italy
3360 Posts

Posted - 15 Oct 2013 :  08:39:34  Show Profile  Visit s.dav's Homepage  Reply with Quote
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.

Regards, Davide
Go to Top of Page

sfi_dev
Practical

37 Posts

Posted - 21 Oct 2013 :  01:50:37  Show Profile  Visit sfi_dev's Homepage  Reply with Quote
Thank-you for your response.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000