php - Check char size in utf8 encoding -


Is there a simple solution to check how many bytes are stored in UTF 8?

strlen () Returns the number of bytes. Mb_strlen () returns the number of multibyte characters.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -