Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113653 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89576 invoked from network); 21 Mar 2021 21:05:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Mar 2021 21:05:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6C03A1804F6 for ; Sun, 21 Mar 2021 14:00:50 -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-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.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 ; Sun, 21 Mar 2021 14:00:49 -0700 (PDT) Received: by mail-ej1-f43.google.com with SMTP id a7so18041072ejs.3 for ; Sun, 21 Mar 2021 14:00:49 -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=7wc2wtXOOZN3fK7uHqWJL4BiIYmLxUR/zjZCzDXZDsE=; b=Govtm7uFDZg4Cfo6UrK+g7m0PKAW0R58qya5tHKQ+aYU04x2UbTqvLx1KI6aSHvpKk rJidVX1U8lRTmU1chwtrqV5WFSFWIggInMkxnkz3r2OhngPn8sZsV1m23J1lzWwvvBMf HCLNM7Drlqx7a/5/fP2ClrnWdGV7TqcyLdlzfGMnDUJ9eIdm9oNcQpDo9VXf3Lg3Z9xR lCH3ccceJKmbjnwFUCv11Zk/Rkkf41hLi5kWpU1W2Bu0VUlHNIGEszDA09Pa6P0no/Cd Ay4y+CQaC779e5hXrGPhz4FMMHrVDI0LdNQg4CTeLla+dV4AmMsnetFW/0+pWOmLQNHa c1sg== 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=7wc2wtXOOZN3fK7uHqWJL4BiIYmLxUR/zjZCzDXZDsE=; b=MzhpCmLnUe/hfc/k7kK1jULg+3UVV32sNzHRVeCwe2SrqES5fuQ9VEHTe/7qnMH1no awSF2Pwx4Z6arBUlMjrUWFXILESeyQqfNmuye9UB0RzCcHF2E0R/AYLVtPn+E+oztZn6 7KTeTRjBK07bOkhq0Fn5GZyArYounTGWHAn3ZeJAQ/iKQiqR/AEXBPHNxBdUvqvmBqBu GR/0SSgj+ONmjb5e/tMNrMJyeh9jIc9Y01vWvqxh50gJOx6UL2LKMBZnU5B2ggrX4n3j G5R/ScGH/BMlNDC/yk5t63eS1VJX5ruh0l8CphJioy/TSxm7bX87Ey6QHydKNYpUNmFo Mcgw== X-Gm-Message-State: AOAM531g6cGrs6H4C7K+hO1t1LrjCVOvTixwvkw6J6B8RxVxx62mjEpT 93f8pIH8sSaVFcN9gr62mLUCumTRNqxpaw/PPyg= X-Google-Smtp-Source: ABdhPJzsCp6A4gMSzrgdLUmHTZIBhvWwIsa/WYONfxMwT1Aar2iWCBWKAm3Mb2NDVddMCCM9JBHUgWWAWmDBuT6OWOw= X-Received: by 2002:a17:906:cd12:: with SMTP id oz18mr16059532ejb.498.1616360448554; Sun, 21 Mar 2021 14:00:48 -0700 (PDT) MIME-Version: 1.0 References: <3a4d89fc-c5f8-4720-b2e0-f6f3c28684f9@www.fastmail.com> <5f5fd136-e181-d5d3-fe40-1a4cc5c668f2@gmail.com> In-Reply-To: Date: Mon, 22 Mar 2021 00:00:37 +0300 Message-ID: To: Kamil Tekiela Cc: Rowan Tommins , PHP internals Content-Type: multipart/alternative; boundary="0000000000005d79e205be123ec3" Subject: Re: [PHP-DEV] What should we do with utf8_encode and utf8_decode? From: maxsem.wiki@gmail.com (Max Semenik) --0000000000005d79e205be123ec3 Content-Type: text/plain; charset="UTF-8" On Sun, Mar 21, 2021 at 10:08 PM Kamil Tekiela wrote: > I think we really do not need to keep these functions. As for the > alternative that we can offer, iconv seems to be doing exactly the same > thing and even better. mb_convert_encoding does the same but also silently > ignores invalid characters. So we already offer plenty of alternatives. We > don't need to add anything new. > Just a quick reminder that it's possible to compile PHP without mbstring and intl, which means that some hosts will provide PHP without these extensions, and some packagers make them available as separate packages that users can't or don't know how to install. Maybe we've got an opportunity to think about making these extensions mandatory? -- Best regards, Max Semenik --0000000000005d79e205be123ec3--