[Phpmyadmin-devel] testcase for mb_string

Michal Čihař michal at cihar.com
Tue Apr 17 10:18:08 CEST 2007


Hi

On Tue, 17 Apr 2007 10:15:16 +0200
Sebastian Mendel <lists at sebastianmendel.de> wrote:

> does anybody have a small testcase what describes what happens without
> mb_string?

Multibyte string is split wrongly. So if you create utf-8 string with
only multibyte chars and make substr on it, string can be split in
midlle of char leading to invalid utf-8. Small test is attached.

-- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.php
Type: application/x-php
Size: 157 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20070417/e45adc91/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20070417/e45adc91/attachment.sig>


More information about the Developers mailing list