Re: [PHP-DEV] iconv vs. mbstring

2020-03-08 Thread Tomas Kuliavas
2020.03.08 16:08 Dan Ackroyd rašė: > On Tue, 3 Mar 2020 at 22:17, Christoph M. Becker > wrote: >> >> for more >> general string functionality, it would be ext/mbstring. >> >> Thoughts? >> > > Related to this discussion, please could someone remind me why the > mbstring extension is an extension an

Re: [PHP-DEV] iconv vs. mbstring

2020-03-08 Thread Rowan Tommins
On 08/03/2020 14:08, Dan Ackroyd wrote: Related to this discussion, please could someone remind me why the mbstring extension is an extension and not part of core PHP? I realise at the time it was introduced, UTF-8 was far less widely used: https://en.wikipedia.org/wiki/UTF-8#/media/File:Utf8web

Re: [PHP-DEV] iconv vs. mbstring

2020-03-08 Thread Dan Ackroyd
On Tue, 3 Mar 2020 at 22:17, Christoph M. Becker wrote: > > for more > general string functionality, it would be ext/mbstring. > > Thoughts? > Related to this discussion, please could someone remind me why the mbstring extension is an extension and not part of core PHP? I realise at the time it

Re: [PHP-DEV] iconv vs. mbstring

2020-03-05 Thread Christoph M. Becker
On 05.03.2020 at 15:33, Rowan Tommins wrote: > On Thu, 5 Mar 2020 at 11:59, Aleksander Machniak wrote: > >> Also, I have a case in which iconv_* functions were much much slower >> than mbstring. See wordwrap implementation in >> >> https://github.com/roundcube/roundcubemail/blob/master/program/l

Re: [PHP-DEV] iconv vs. mbstring

2020-03-05 Thread Rowan Tommins
On Thu, 5 Mar 2020 at 11:59, Aleksander Machniak wrote: > > Also, I have a case in which iconv_* functions were much much slower > than mbstring. See wordwrap implementation in > > https://github.com/roundcube/roundcubemail/blob/master/program/lib/Roundcube/rcube_mime.php#L589 > > Either I misre

Re: [PHP-DEV] iconv vs. mbstring

2020-03-05 Thread Aleksander Machniak
On 03.03.2020 23:16, Christoph M. Becker wrote: > For users learning PHP, and also for new code, it would be beneficial to > not have to decide which of these extensions to use; if they need > character encoding conversion, iconv() would be preferable; for more > general string functionality, it wo