[Solar-talk] Unicode

Rodrigo Moraes rodrigo.moraes at gmail.com
Mon Aug 6 07:02:54 CDT 2007


On 7/19/07, Antti Holvikari wrote:
> * Now, we have all the files and data in UTF8 but str -functions won't
> work for multibyte strings. What can we do? We can use mb_ functions
> for string operations. *But* multibyte extension is not enabled by
> default :-(. There is a ini setting called "mbstring.func_overload"[1]
> which will overload a set of functions so that they work with unicode.
> Does someone know if this setting is enough for PHP to handle *all*
> str operations? I doubt it.

Since you sent this e-mail, I've set mbstring.func_overload to 7
(maximum overload) for dev just too see what would happen. Of course
now it works well to validate string lenghts, and I haven't seem any
functional problems, although phpMyAdmin (v. 2.9.1) complains about
it:

"You have enabled mbstring.func_overload in your PHP configuration.
This option is incompatible with phpMyAdmin and might cause some data
to be corrupted!"

It works well, though, and as I don't usually manipulate data using
phpMyAdmin, everything seems fine.

-- rodrigo


More information about the Solar-talk mailing list