views:

248

answers:

2
+2  A: 

You will (probably) run into problems when using string manipulation functions now that everything is in UTF-8. You can avoid this if you enable the "mbstring.func_overload" option which will override PHP's built in functions with Mb_* ones (or replace built in functions with Mb_* functions by hand). See this page in the PHP manual

Jan Hančič
+1  A: 

First of all, mbstring is not DB matter, but rather PHPs. And second - yes, you should have this extension if you want to do anything with your strings in PHP - eg comparing or splitting.

The simplest example will be padding string to certain length (like you have an article preview in search list), if you use standard PHP functions, they operate on single bytes and can cut 'through' one UTF character.

You can overload some variables if you're in control of web server. But to make code more portable, I suggest explicitly use mb_* functions. Most of web servers have this extension enabled this days.

Tomasz Struczyński