Unicode character counts
The JS in the front-end counts characters correctly, but the back-end counts the number of bytes (even though it says “characters”).
Not a big deal, but I'm never sure whether it *should* be counting bytes or whether it should be counting characters—either way it needs to be consistent.
Not a big deal, but I'm never sure whether it *should* be counting bytes or whether it should be counting characters—either way it needs to be consistent.
8
people have this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
-
Inappropriate?Should be fixed with PHP 6. In the meantime, I solved a similar problem by using the multibyte extension:
http://blog.pbmods.com/2008/07/01/failing-gracefully-with-utf-8-part-2/
Hope that helps!
Loading Profile...



