At the moment, I don’t understand why it is really important to use mbstring functions in PHP when dealing with UTF-8? My locale under linux is already set to UTF-8, so why doesn’t functions like strlen, preg_replace and so on don’t work properly by default?
At the moment, I don’t understand why it is really important to use mbstring
Share
All of the PHP string functions do not handle multibyte strings regardless of your operating system’s locale. That is why you need to use the multibyte string functions.
From the Multibyte String Introduction: