Re: [PHP-DEV] Potential RFC: mb_rawurlencode() ?

2025-03-22 Thread Paul M. Jones
Hi Rowan & all, > On Mar 22, 2025, at 10:20, Rowan Tommins [IMSoP] wrote: > > On 21/03/2025 11:17, Tim Düsterhus wrote: >> >> 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 r

Re: [PHP-DEV] Potential RFC: mb_rawurlencode() ?

2025-03-22 Thread Paul M. Jones
Hi Tim & all, > On Mar 21, 2025, at 06:22, Tim Düsterhus wrote: > > Am 2025-03-18 18:48, schrieb Paul M. Jones: >> $iriPath = '/heads/' . rawurlencode($val) . '/tails/'); >> assert($iriPath === '/heads/fü bar/tails/'; // false > > From my reading of RFC 3987 that result is incorrect. The space

Re: [PHP-DEV] Potential RFC: mb_rawurlencode() ?

2025-03-22 Thread Rowan Tommins [IMSoP]
On 21/03/2025 11:17, Tim Düsterhus wrote: 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. This confirms a nagging