RE: [PHP-I18N] PHP 6: Mysql with iso-8859-1 chars outputting utf-8: "Could not convert binary string to Unicode string"
| From: | Andi Gutmans | Date: | Thu, 03 May 2007 17:42:35 +0000 |
| Subject: | RE: [PHP-I18N] PHP 6: Mysql with iso-8859-1 chars outputting utf-8: "Could not convert binary string to Unicode string" | ||
| References: | 1 2 3 4 5 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-1067@lists.php.net to get a copy of this message | ||
So can we fix the MySQL extension to just feed the UTF-16 as USC2
instead of converting to UTF-8?
> -----Original Message-----
> From: Derick Rethans [mailto:derick@php.net]
> Sent: Thursday, May 03, 2007 12:38 AM
> To: Andi Gutmans
> Cc: Georg Richter; Andrei Zmievski; Rangel Reale; PHP I18N
> Subject: RE: [PHP-I18N] PHP 6: Mysql with iso-8859-1 chars
> outputting utf-8: "Could not convert binary string to Unicode string"
>
> On Wed, 2 May 2007, Andi Gutmans wrote:
>
> > Georg,
> >
> > Do you guys support UTF-16? It'd be nice if we could just feed MySQL
> > UTF-16 and you'd do the right thing. It'd save us from having to
> > convert to UTF-8. Sure you'd have to most probably do it for us but
> > it's easier when the DB driver does the work.
>
> AFAIK MySQL only supports USC2, and not UTF-16. That
> shouldn't cause any problems though as this means MySQL would
> not support chars out of the BMP (which it wouldn't with UTF8 either).
>
> regards,
> Derick
>
> --
> Derick Rethans
> http://derickrethans.nl |
> http://ez.no | http://xdebug.org
>