Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95316 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35363 invoked from network); 19 Aug 2016 15:26:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2016 15:26:42 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.52 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.52 mail-wm0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:38302] helo=mail-wm0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/62-17996-13527B75 for ; Fri, 19 Aug 2016 11:26:42 -0400 Received: by mail-wm0-f52.google.com with SMTP id o80so46243310wme.1 for ; Fri, 19 Aug 2016 08:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=vPoToF2nrqIMGcj5O5qNJDkdDJKXMXHM3JT+04Y6dWA=; b=If7Lyf/6QcmO505+7rTs+BA+3NbMrbdvhGLeosF9DYm57pRqsgCbZW7mErEwoLosKx zgZ9/lbmGprx0wEqufbn5zakfqMaLpn+LyjYgtcTdB2nMgLjwDIFjC4DR9bXWKmqvwUf uj2TsWwzg9DjYfI3QXPkox4gzVA92a2NIwYEWXKaFvxQcKvWML0UfNQ4EqpnZ7Kgr9q3 l0VqFHu2zDrgxYlvo68HKaDoBTZGgWS7eqtyijajMB0CB9PDjCScfSPmlVyxJPmK2La0 /575p7jHSJDVa1CHQw3Y4siZle8dGh3HSyUUE/zQ2hTG+TpoTfBHkIE6sR8u4/8T61yC c11w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=vPoToF2nrqIMGcj5O5qNJDkdDJKXMXHM3JT+04Y6dWA=; b=lU7BXIVa2yq4/HtqrI2QrZK+A/bFz4BytMrsiEOyNu9yBJhlmp54I1b/r+acVU9uJ1 LOXuhqEh37DXTLV0i3MhLyjo8ITOFM4jHedYJZdjDT9LaLrvQcj+46qm7VY8TFP9+Ou0 /Dv5SErrIHdk6TNaJ4LWzUhu2bQJQhWOGcsnBSy+ccZ/dJsPmEclu3ef8dTHJauYugEP v+r1KNExMrM/BGbyILvIrcE3+nEzquLnVGCOMHYWjAmEXbbh653jk2THuIVkwl0KpXDl l3vphLLf8D9QpVVg+RKja+POtCMacn8imegRWbwx91i3lXMGaZvboZ9fyG1rQqj1fJqB f7rQ== X-Gm-Message-State: AEkoouvKNnM7qZbvCViEYwqsRhYJUpWCWre1Ba60hsMUzM4NPPKKTC7qJ5Bgp1d8aOcMIA== X-Received: by 10.194.133.200 with SMTP id pe8mr6942857wjb.14.1471620398557; Fri, 19 Aug 2016 08:26:38 -0700 (PDT) Received: from [192.168.0.98] ([93.188.182.58]) by smtp.gmail.com with ESMTPSA id i1sm3616874wjf.12.2016.08.19.08.26.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Aug 2016 08:26:37 -0700 (PDT) To: internals@lists.php.net References: Message-ID: Date: Fri, 19 Aug 2016 16:24:28 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Remove utf8_decode() and utf8_encode() From: rowan.collins@gmail.com (Rowan Collins) On 19/08/2016 16:12, Pierre Joye wrote: > I am against removing them, now or in 8.x. this is the kind of things that > makes migrations painful. They are broken on some cases? Fix them maybe? The thing that is broken about the functions is not the functionality, but the name. I suppose you could change them to recode Windows CP-1252, which is more common than latin-1 and mostly compatible with it, but that still breaks European sites using ISO 8859-15 (latin 9), and frankly would just further reinforce the common misapprehensions around "extended ASCII" and "decoding UTF8". What do you think of making them aliases of the new names latin1_to_utf8 and utf8_to_latin1? We needn't even deprecate the old names, but at least it would draw more attention to what they actually do? Regards, -- Rowan Collins [IMSoP]