Re: Re: Alternative mbstring implementation using ICU
| From: | Stanislav Malyshev | Date: | Fri, 31 Jul 2009 16:37:54 +0000 |
| Subject: | Re: Re: Alternative mbstring implementation using ICU | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45167@lists.php.net to get a copy of this message | ||
Hi!
True. I wonder what this function is useful for?mb_str* - shouldn't you in 6 just convert them to unicode and do all string operations with Unicode strings? Also, in 5 isn't there some intersection with grapheme_* functions?mb_strwidth() and mb_strimwidth() are not covered.
That's a common problem, IIRC PHP 6 converters have configurable error modes for that. Don't unicode_set_error_handler() and unicode_set_error_mode() do what you want? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.commb_output_handler - shouldn't setting the proper encoding in 6 do the same job? mb_convert_encoding - don't we already have a number of functions that do encoding conversions?I don't think It can gracefully handle characters that have no corresponding entries in the target character set. I'm even thinking