Search code examples
phpencodingmultibyte

Why are PHP string functions not multi-byte safe by default?


Why are the PHP multi-byte string functions (the ones which start with mb_) not used by default in PHP?


Solution

  • Backwards compatibility. Old PHP scripts depend on non-multibyte functionality.

    See also: http://www.php.net/manual/en/mbstring.overload.php