Re: Re: [RFC] Multibyte char handling

From: Date: Thu, 16 Jan 2014 02:58:05 +0000
Subject: Re: Re: [RFC] Multibyte char handling
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Thu, Jan 16, 2014 at 11:36 AM, <[email protected]> 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
[email protected]


Thread (31 messages)

« previous php.internals (#71169) next »