Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71169 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75057 invoked from network); 16 Jan 2014 02:58:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2014 02:58:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.174 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.174 mail-lb0-f174.google.com Received: from [209.85.217.174] ([209.85.217.174:38836] helo=mail-lb0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/B4-48719-9EA47D25 for ; Wed, 15 Jan 2014 21:58:50 -0500 Received: by mail-lb0-f174.google.com with SMTP id p9so1442928lbv.19 for ; Wed, 15 Jan 2014 18:58:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=BtIXmZP1V9Ba/FFaZ9+s7LiQ2P2aSrVC9e1nRmIWCTY=; b=0adQp6iAsvqoBdbKIB0TCRTntKz+zyTsVSXVaP+2uiGQM4pQc6elFMH4xubiZLVsCF j/0Gq3JsXxHPf6yExbhSAWN+H5+CU791OYhBG2dWFjQP4voeCzGFWXs7yuDXR3Smusvc /LvxMsH+EBpNllqpt81/8MOuKRWU/bECsvIBtb230RQsS+vcL4fjYRkSO+O5pCvVBVsZ YpewNQAXqH/fByzUY90xYCJspIFHlq1rqlbpjtHqk1D5p1dtbWM3DkhODraUJJtS4D24 q1BXnLVnM/oWLbj28YvgRD4yzbxx1SB8ov+NC4indYccyKc4IRoZvXdHBifXLhEubYd3 pfeg== X-Received: by 10.112.141.166 with SMTP id rp6mr3399796lbb.39.1389841126229; Wed, 15 Jan 2014 18:58:46 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.6.68 with HTTP; Wed, 15 Jan 2014 18:58:05 -0800 (PST) In-Reply-To: <20140116023616.A43BF26437F@dd15934.kasserver.com> References: <20140116023616.A43BF26437F@dd15934.kasserver.com> Date: Thu, 16 Jan 2014 11:58:05 +0900 X-Google-Sender-Auth: plvnOj-HLd4eexoRnrVyAqtKyuc Message-ID: To: mails@thomasbley.de Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c388929f8ca004f00d9a3a Subject: Re: [PHP-DEV] Re: [RFC] Multibyte char handling From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c388929f8ca004f00d9a3a Content-Type: text/plain; charset=UTF-8 On Thu, Jan 16, 2014 at 11:36 AM, wrote: > what about mb_trim? > e.g. UTF-8: C2 A0, e2 80 82, e2 80 83, e2 80 af > > I currently have lots of untrimmed data in a database since php-trim() and > mysql-trim() can't handle these characters. > There are workarounds like trim($str, chr(0xC2).chr(0xA0)); but they are > not really nice to code. > We need few more basic functions like trim(). This is different issue, but I may work on it. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c388929f8ca004f00d9a3a--