Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126908 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 3770D1A00BC for ; Sat, 22 Mar 2025 16:09:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1742659599; bh=iIrcCLkLqOyM7CUtY2D6Rnt7zUfYGEsTSiiE6Vh0Hds=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=KaeISGWB1WBUaaMSah0xAMoWlXwyG0et/Xsa6TrqyyG1Y6M1x8r31Eh3hJ8QbH7iz ynI5GAkfNbgHfYlahKDcun2q7MexawerrntPSY/sr29JCmPHoDPDgmUrWevjEcRS9t fy2GV576lM/IGN8946zcboF7w0IhyffiP1oSgK/7b05XhXKyS8BkWZt46Jc1QJeSX/ huE5jxfz4nQb0e3MaQAftBW28N6j1D5DGe1vOZFzhI+EbYTeu0UYNV9rUg0wEITx45 P+/9esfcD74Niro7zBYexYBBlALimnKH6zTI72Vf9MKE/AFnm19lrTYylKpHS3UNra U48DVWapbJyJg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2229818004E for ; Sat, 22 Mar 2025 16:06:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from premium76-5.web-hosting.com (premium76-5.web-hosting.com [162.213.255.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 22 Mar 2025 16:06:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pmjones.io; s=default; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=bjejBWytn22ULvT9vOFUzRQSdBzXZ/BJ2SrT4K5a0bg=; b=E8NQTj0KUD/NAt4aSxLHZtiImO wV7nJY1k9tBew1xRN2ZiXRV1iO97lNGry8WAEWkXDSBmzWnayQRTJ0rlqXNbz7pRZiicmIA64gZHF fwf4NsHxSHHUWgccIgbdiEvZ5zYQdrvU/xxkCCsMJpYar0kOhaQhUX4jC94de7EefYE+Ag0d5ohw3 6U0Zofz8Hm46IXmvKxCtedXeRXVijsglbs4AY6oi+6MHVN2/o1b/ho5Id5+ur9xb3KlMxMED/ZeOD s6IgPVvmkBxuOnbCL5NmE6FX4dzxXxfx6UAuJbWVeuDeaHl3Ds7cxJ7YxOf073nHQVG3zzSCZV+ML lCfQvkyQ==; Received: from 107-223-28-39.lightspeed.nsvltn.sbcglobal.net ([107.223.28.39]:52880 helo=smtpclient.apple) by premium76.web-hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1tw1PH-000000067id-0IUW; Sat, 22 Mar 2025 12:09:06 -0400 Content-Type: text/plain; charset=utf-8 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Re: [PHP-DEV] Potential RFC: mb_rawurlencode() ? In-Reply-To: <36e83b76-6bab-42a3-9c5d-07a35d43851f@rwec.co.uk> Date: Sat, 22 Mar 2025 11:08:54 -0500 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <4D8DD31A-E982-4D63-8671-2A35A886C609@pmjones.io> References: <36e83b76-6bab-42a3-9c5d-07a35d43851f@rwec.co.uk> To: "Rowan Tommins [IMSoP]" X-Mailer: Apple Mail (2.3826.400.131.1.6) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - premium76.web-hosting.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pmjones.io X-Get-Message-Sender-Via: premium76.web-hosting.com: authenticated_id: pmjones@pmjones.io X-Authenticated-Sender: premium76.web-hosting.com: pmjones@pmjones.io X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched From: pmjones@pmjones.io ("Paul M. Jones") Hi Rowan & all, > On Mar 22, 2025, at 10:20, Rowan Tommins [IMSoP] = wrote: >=20 > On 21/03/2025 11:17, Tim D=C3=BCsterhus wrote: >>=20 >> I am not sure if that signature makes sense and if the proposed = functionality fits into mbstring for that reason. IRIs are defined as = UTF-8, any other encoding results in invalid output / results that are = not interoperable. >=20 > This confirms a nagging feeling I had when I first saw the thread: the = name "mb_rawurlencode" implies "do the same things as rawurlencode, but = for multi-byte strings", but that's not what is being proposed. [snip] No argument; my point is more "if we are going to do IRI and WHATWG-URL, = we're going to need some additional support functionality around = encoding component values for them." How that is achieved is up for = grabs. If this discussion has revealed a tentative consensus that it = needs to happen, I consider it a success. Next up: what exactly should the API around this functionality look = like? I suggested functions but that's clearly a non-starter; what do = we feel is a good alternative, and can it be achieved independently from = (but in support of) the URI+WHATWG-URL proposal? -- pmj