I'm building a web app in zend framework that needs UTF8 support for all languages. This seems to work fine except for functions like stripslashes and such.
On this URL, they talk about using MBSTRING http://developer.loftdigital.com/blog/php-utf-8-cheatsheet
Is it necessary to use mbstring on my server and replace ALL occurences of UTF8-incapable functions by their MB-variant?
Isn't Zend Framework suppost to support UTF8 ? If not, we'd have to replace all functions in the ZF-codebase to their mb_ alternatives, right? Which is an impossible task because an upgrade to a new ZF would break our code.
mail() -> mb_send_mail()
strlen() -> mb_strlen()
strpos() -> mb_strpos()
strrpos() -> mb_strrpos()
substr() -> mb_substr()
strtolower() -> mb_strtolower()
strtoupper() -> mb_strtoupper()
substr_count() -> mb_substr_count()
ereg() -> mb_ereg()
eregi() -> mb_eregi()
ereg_replace() -> mb_ereg_replace()
eregi_replace() -> mb_eregi_replace()
split() -> mb_split()
What's your advice on this, I might be completely wrong on this? I read about using:
mbstring.func_overload = 7 ;
to overload all functions automatically.
Will this break an existing application that doesn't need UTF8 or does it "degrade gracefully"?