Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113668 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 55258 invoked from network); 22 Mar 2021 13:23:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Mar 2021 13:23:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 28D611804DD for ; Mon, 22 Mar 2021 06:18:56 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 22 Mar 2021 06:18:55 -0700 (PDT) Received: by mail-ed1-f43.google.com with SMTP id l18so11092979edc.9 for ; Mon, 22 Mar 2021 06:18:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R0u5D/vEVJ+elrxbTnC70iLxr6e9Z5jZmok68QUdOqY=; b=mJcQcyk2ArlrtrsoxHj8Jg2qHyv0/gaX3PNNHIT3TJq8DkqVRg1HiwIF0HMSDh+mxa nCBntKT6ZuEPjBratn0CoVkXNEnFHM0s11gElklyLOtPmyKvxTKgVwH6T6JI57A2FTED SItoQR+CaeA151papZ+ci38cLaeojrq0jXiyNuh0T02fWeZWrAVFBAXBSZRj+oD4T1v2 nGatD9zDss/aRHOt6hW66AodVqRWKziX8lXUFnSks4MgACfMk6hmYTkoCrPS23/Ut11W kcK4MPVPWA5cHanVEM2sK1slrZLt6TvLDKkUFLwl5WV9vivk9wRcYbA95r+w3jltYxw3 bxyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R0u5D/vEVJ+elrxbTnC70iLxr6e9Z5jZmok68QUdOqY=; b=AjCOV7BSORoQumFB5R8o5QoOCu9SXbZUKb4inxGXMJsDeKcWOQrXrY1CHdeUM6datm LjFlW4eZpoE0Vxd5MHB1BXf9J1Z10VM2eDuo0/J/808al9AWIwP80G9zRKQf5btpjaAv pNOEK5dTwzsXD/Z7sd2DbFaI84WfekiVbxBKR4RosT2ByeWEb8TbzSA2rh10pOkE8nIr jrsd1KVyP1zNPpkB+3HwQiE/INfEnPkshpafbOKRO8vkklwCCQvDD+VcNhgjCpeyQheT /BPAjXya9JvbWpk8LvzRRZrJggMETbp9TndHm9gIfUvj9tOz7f8/FthleI+wGqMiuqKb eubA== X-Gm-Message-State: AOAM532Wnn07Rwu47KRcd5FKR6Yak68mVU0thPm6dsaDQ+hfd4/HZY1e zPFDF7UThL8d3k3yyJVNvA4vwRd6ZZ+NPMi/z3k= X-Google-Smtp-Source: ABdhPJzF7gM3iC3sDw1EJxMW5mrVm1ymrYQi3aXhjcByhCz+vFMsTgxBE/Zmi4brh8TRpXKF0V7yK8EUs7dL50jU+HA= X-Received: by 2002:aa7:d347:: with SMTP id m7mr25150940edr.260.1616419134307; Mon, 22 Mar 2021 06:18:54 -0700 (PDT) MIME-Version: 1.0 References: <3a4d89fc-c5f8-4720-b2e0-f6f3c28684f9@www.fastmail.com> <5f5fd136-e181-d5d3-fe40-1a4cc5c668f2@gmail.com> <25680b8d-af02-c1d4-e630-7bf079881f1c@gmail.com> In-Reply-To: Date: Mon, 22 Mar 2021 14:18:42 +0100 Message-ID: To: Sara Golemon , Rowan Tommins Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000004f025205be1fe82a" Subject: Re: [PHP-DEV] What should we do with utf8_encode and utf8_decode? From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --0000000000004f025205be1fe82a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le lun. 22 mars 2021 =C3=A0 14:14, Sara Golemon a =C3=A9c= rit : > On Mon, Mar 22, 2021 at 6:12 AM Rowan Tommins > wrote: > > I realise you can't speak for anyone else, but as a point of interest, > > would you be OK with a polyfill having a requirement on ext/mbstring or > > ext/iconv, or would you have a strong preference for a replacement buil= t > > into the core (i.e. guaranteed available without any optional packages)= ? > > > > Can you clarify what *YOU* mean by a polyfill? Because you're talking > about dependence on iconv/mbstring/icu which implies you want a polyfill > that does something other than what the original utf8_en/decode() functio= ns > do, and those functions certainly do not need external dependencies. > They're really just not that complex. > Shameless plug: the polyfill exists, without any dependency, see https://github.com/symfony/polyfill-php72/blob/main/Php72.php ;) Nicolas --0000000000004f025205be1fe82a--