On 1/7/09 12:59 PM, Raimond Spekking wrote: > For a lot (all?) text input fields for reasons we have set a maxlength > of 200 but some are set to 255. > > Is there a special reason for 200? Or should we increase all to 255? Or > reduce all to 200? I like consistency :)
The big trick is that these are generally for fields which have a database length limit of 255 *bytes*, which can be anywhere from 63 to 255 *characters* of UTF-8 text. The 'maxlength' on the input field is enforced in Unicode *characters* by the browser. I think the 200 is an arbitrary compromise to keep the in-browser limit from overflowing the field length in most European languages... but it's insufficient for non-Latin text. -- brion _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
