Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67561 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59265 invoked from network); 27 May 2013 18:04:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2013 18:04:12 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.175 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.217.175 mail-lb0-f175.google.com Received: from [209.85.217.175] ([209.85.217.175:59837] helo=mail-lb0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/A2-44058-A10A3A15 for ; Mon, 27 May 2013 14:04:11 -0400 Received: by mail-lb0-f175.google.com with SMTP id v10so6907475lbd.20 for ; Mon, 27 May 2013 11:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Em9r3Liih1EgzjpGCvETZHtrIj0jV7efd4Zr0mmUM0w=; b=vvsALZ8YpBQtmDO2PxUFImcofoYxxnEUrXA7ujF01rcQPQHw/hCrRuIohR40RKC/yP INxWQZvMtS5b5EysRibGLEA8JolO3QU3kjt7veejOlLvIV9kCR2K70tCm6FqUjIPTMSS E8wEILVCQwAARGXSCuFVJwBgBbi0qvuxkepnRJL+N5d3E3e8mtZjlB8YhyOS1M48LTh4 K4RpkWnfSaYJFfPJgy8dckobH3LARqDJ/Vr/wnEVaKyHI2Xq3ikUjgH8RL5LOGpMalo+ YvztBKSPBD7zbkbffnl5V8EwxyNBSjFdx2+DmhtvZszELPM25C/NlU0dJTUfbJ/u4g// lIzg== MIME-Version: 1.0 X-Received: by 10.112.34.131 with SMTP id z3mr493084lbi.87.1369677847536; Mon, 27 May 2013 11:04:07 -0700 (PDT) Received: by 10.112.138.135 with HTTP; Mon, 27 May 2013 11:04:07 -0700 (PDT) In-Reply-To: References: <61BC4F17-86D9-4CBD-B185-58A2D4AFAE5F@rouvenwessling.de> <51A2DB98.6020501@sugarcrm.com> Date: Mon, 27 May 2013 20:04:07 +0200 Message-ID: To: Adam Harvey Cc: Stas Malyshev , PHP internals Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Proposal for better UTF-8 handling From: pierre.php@gmail.com (Pierre Joye) hi Adam! On Mon, May 27, 2013 at 6:39 PM, Adam Harvey wrote: > On 26 May 2013 21:05, Stas Malyshev wrote: >> >>> I agree with Nikita =97 I'm not against adding more Unicode/charset >>> 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 =97 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. We will still require to use some external Unicode data. I won't go with our own data set, ever, that's something we won't be able to maintain. By the way, it is why intl is very good, same APIs, it only adds new functions, no change in existing APIs, but you get free Unicode data update while updating the library. And I would like to enable it by default, or make it a required extension at some point. Cheers, -- Pierre @pierrejoye | http://www.libgd.org