Re: svn: web/php-bugs/trunk/ rpc.php
| From: | Hannes Magnusson | Date: | Mon, 20 Jul 2009 20:11:35 +0000 |
| Subject: | Re: svn: web/php-bugs/trunk/ rpc.php | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-5457@lists.php.net to get a copy of this message | ||
On Mon, Jul 20, 2009 at 17:57, Gwynne Raskind<gwynne@php.net> wrote:
> gwynne Mon, 20 Jul 2009 15:57:11 +0000
>
> Revision:
> http://svn.php.net/viewvc?view=revision&revision=284450
>
> Log:
> get MySQL to return UTF-8 data for json_encode(), and add a hook to only fetch bug data
>
> Changed paths:
> U web/php-bugs/trunk/rpc.php
>
> Modified: web/php-bugs/trunk/rpc.php
> ===================================================================
> --- web/php-bugs/trunk/rpc.php 2009-07-20 15:27:33 UTC (rev 284449)
> +++ web/php-bugs/trunk/rpc.php 2009-07-20 15:57:11 UTC (rev 284450)
> @@ -22,6 +22,7 @@
>
> @mysql_connect("localhost","nobody","") or die("Unable to
> connect to SQL server.");
> @mysql_select_db("phpbugdb");
> +@mysql_query("SET NAMES utf8");
from php.net/mysql_set_charset:
"Note: This is the preferred way to change the charset. Using
mysql_query() to execute SET NAMES .. is not recommended. "
IIRC it had something to do with escaping strategy.. so maybe its no
issue when using MQ?
-Hannes