(...) only allow submissions in latin-1 (which is the default perl character encoding) using the "accept-charset" property on the <form> tag (...)That's a reasonable solution, so long as you keep in mind that characters beyond latin-1 will be submitted as encoded entities (e.g. Ł). Taking that into account in length calculations is a *lot* harder than consistently using utf8 across the board.
In reply to Re^2: How to count string length with latin characters?
by rhesa
in thread How to count string length with latin characters?
by newblet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |