Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77998 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74632 invoked from network); 14 Oct 2014 13:50:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2014 13:50:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.208 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.208 imap2-3.ox.privateemail.com Received: from [192.64.116.208] ([192.64.116.208:40214] helo=imap2-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/5A-26074-32A2D345 for ; Tue, 14 Oct 2014 09:50:27 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 1096E8C0086; Tue, 14 Oct 2014 09:50:24 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TiX5k3Th-Y0q; Tue, 14 Oct 2014 09:50:23 -0400 (EDT) Received: from oa-res-26-28.wireless.abdn.ac.uk (oa-res-26-28.wireless.abdn.ac.uk [137.50.26.28]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 0D3348C0089; Tue, 14 Oct 2014 09:50:22 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: <543CE705.7030203@gmail.com> Date: Tue, 14 Oct 2014 14:50:20 +0100 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <4575A816-43F4-462D-8150-A2D35516D914@ajf.me> References: <543CE705.7030203@gmail.com> To: Aleksey Tulinov X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] Unicode support From: ajf@ajf.me (Andrea Faulds) On 14 Oct 2014, at 10:04, Aleksey Tulinov = wrote: > I would appreciate if someone would point me to a good read or explain = collective opinion on this topic. I'm basically interested in the = following questions: >=20 > 1. Is there a need for more Unicode support in PHP? Yes. > 2. What is currently missing in that regard? Unicode string support. > 3. Is this a good place to ask such questions? Yes. If you want to see a pragmatic, actually working, work-in-progress = attempt at better PHP unicode support, see this: = https://github.com/krakjoe/ustring It would add a UString class to PHP for Unicode strings. This would make = Unicode text manipulation much easier than it is now. And both internal = and userland code which accepts strings would already be compatible as = it has a __toString method, but new code could also choose to accept = UStrings directly. -- Andrea Faulds http://ajf.me/