Re: Re: [RFC] Multibyte char handling
| From: | Yasuo Ohgaki | 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 internals+get-71169@lists.php.net to get a copy of this message | ||
On Thu, Jan 16, 2014 at 11:36 AM, <mails@thomasbley.de> 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