in reply to Re: How to count string length with latin characters?
in thread How to count string length with latin characters?

(...) 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. &#321;). Taking that into account in length calculations is a *lot* harder than consistently using utf8 across the board.

Replies are listed 'Best First'.
Re^3: How to count string length with latin characters?
by Joost (Canon) on Nov 02, 2006 at 01:34 UTC