Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67560 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49085 invoked from network); 27 May 2013 16:40:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2013 16:40:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.223.180 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.223.180 mail-ie0-f180.google.com Received: from [209.85.223.180] ([209.85.223.180:52420] helo=mail-ie0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/90-44058-B6C83A15 for ; Mon, 27 May 2013 12:40:12 -0400 Received: by mail-ie0-f180.google.com with SMTP id b11so4552295iee.25 for ; Mon, 27 May 2013 09:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=TKVDyEjpRfMDpcb/o3o3eFBl3Dk3ZE8PVlDGVhaj60I=; b=0YbHKcG+rWu/bZxgAqr1+spZrVUFbu8o1DIOBX/DnuHBB4p127xShHyBMVgVN7lPun kuy+F/yhMCe0IcBv8T96jO7HGiRXtIyjlWEnf+hT8TXe47r7Q/YRR6dhL5O44sk9TKjT RsmGzrIY7/tAt6lHPjVkUuq4bM/Mx+uwFqa4M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=TKVDyEjpRfMDpcb/o3o3eFBl3Dk3ZE8PVlDGVhaj60I=; b=Tl+US3R8XH59DMA80OVwRhEXVI6yPXK4yuIB/37w8NaXGc2KkA+riQ6p3Zui2W/zIP NQQCRyLeLcvG65B8EpMExIMPwjNWHbq4IjOh2ax7Y4c918Ya7vqI6gNpTE4LiQY/ZN8M KTPF/62Iqw8R9t+L0/hC1Zhutju8SfAf/BnfbKrJm3PPRSwqL4/YfZbEl4WsDzjM7wXo +W7xg2iacyUMVhEZku77rqSwNh/cvC83jEgyZ8SwgGOD9MXuwTvUNI2CJO7sUxwH1Gmp xqQBpZWs3UFWv2RNUO7cfRRMAl0pS1PzlLAmM7rwNCCGpgcTycpXkNSZviSdA0MnJnTt c71g== X-Received: by 10.50.11.18 with SMTP id m18mr5234504igb.98.1369672808867; Mon, 27 May 2013 09:40:08 -0700 (PDT) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.43.105.138 with HTTP; Mon, 27 May 2013 09:39:48 -0700 (PDT) In-Reply-To: <51A2DB98.6020501@sugarcrm.com> References: <61BC4F17-86D9-4CBD-B185-58A2D4AFAE5F@rouvenwessling.de> <51A2DB98.6020501@sugarcrm.com> Date: Mon, 27 May 2013 09:39:48 -0700 X-Google-Sender-Auth: Tk0grig2NqE95QGUGK8UulqQWoA Message-ID: To: Stas Malyshev Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmKtVb9s72r3WWGpmQyfLI4Er34pvFF3Z0pLk2Smk3atpdbez6gKIYxXOxOBGwU5e8N3IJY Subject: Re: [PHP-DEV] Proposal for better UTF-8 handling From: aharvey@php.net (Adam Harvey) On 26 May 2013 21:05, Stas Malyshev wrote: > >> I agree with Nikita =E2=80=94 I'm not against adding more Unicode/charse= t >> handling functions if they make sense (and I haven't looked at the >> code for this particular proposal yet), particularly if they'd be part >> of a default build, but enough water has hopefully passed under the > > Did you mean "would *not* be part of the default build"? Because having > yet another way of handling utf-8 (also basing on yet another separate > library so with potential for incompatibilities and quirks) doesn't look > like a good idea. Having yet another PECL ext is not a big deal, but > having yet another way by default certainly would only create confusion. I did mean would =E2=80=94 one issue with much of our internationalisation code is that it's in extensions (intl, iconv, mbstring) that are inconsistently deployed by shared hosting providers. Having some basic conversion and string handling functions that could be available in ext/standard might not be a bad thing. I do agree that having yet another set of functions with their own behaviours isn't ideal, though. Adam