I am using strlen(), with a converted string using utf8_decode(). Always supposing that this function converts unknown characters as single quotation marks '?'. This is enough for counting characters purpose.

However, is there a more appropiate method?