utilphp icon indicating copy to clipboard operation
utilphp copied to clipboard

Use mb_* functions

Open softwarespot opened this issue 9 years ago • 3 comments

I am wandering whether it would be good to use multi-byte string functions by default or have a wrapper for both e.g. strlen and mb_strlen?

softwarespot avatar Feb 20 '16 07:02 softwarespot

Can you provide statistics on how common mb_string is deployed?

hopeseekr avatar Mar 13 '16 16:03 hopeseekr

How would one be able to calculate this?

softwarespot avatar Mar 13 '16 17:03 softwarespot

If you install any Linux they are not part of the php-common package and must be installed manually

Maybe you can check if they exist and use them if they are present

There is a library that makes a polyfill of mb_* https://github.com/voku/portable-utf8

peter-mw avatar Mar 13 '16 17:03 peter-mw