Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108900 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 54617 invoked from network); 8 Mar 2020 19:19:49 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Mar 2020 19:19:49 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A65C61804E6 for ; Sun, 8 Mar 2020 10:40:17 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS13194 213.226.128.0/18 X-Spam-Virus: No X-Envelope-From: Received: from avilys.eik.lt (avilys.eik.lt [213.226.176.103]) by php-smtp4.php.net (Postfix) with ESMTP for ; Sun, 8 Mar 2020 10:40:16 -0700 (PDT) Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id 94AE1418D for ; Sun, 8 Mar 2020 19:40:14 +0200 (EET) Received: from 78.56.84.144 (NaSMail authenticated user tomas@topolis.lt) by avilys.eik.lt with HTTP; Sun, 8 Mar 2020 19:40:14 +0200 (EET) Message-ID: <58566.4e385490.1583689214.nsm@avilys.eik.lt> In-Reply-To: References: <09dd1b84-ed33-a059-82f9-5efd179e69d6@gmx.de> Date: Sun, 8 Mar 2020 19:40:14 +0200 (EET) To: internals@lists.php.net User-Agent: NaSMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] iconv vs. mbstring From: tokul@users.sourceforge.net ("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 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:Utf8webgrowth.svg > > But now UTF-8 is pretty much the default for the vast majority of > projects, so does that decision to keep it as an optional extension > still hold up? Majority is not 100%. Your German folders in webmails are not in UTF-8. Even if application operates in utf-8, it still must be able to work not with utf-8 and PHP functions that changed default from ascii/iso-8859-1 to utf-8 were not designed to operate in real world. Reason why mbstring are not base string functions is why PHP6 does not exist. -- Tomas