[Correction] Re: [PHP-DB] PHP + PostgreSQL: invalid byte sequence for encoding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




The solution is pretty simple once you hit it, and works in both MySQL and PGSQL because it's standard SQL-92 :

$query="SET NAMES 'UTF-8'";


Sorry - I meant $query="SET NAMES 'UTF8'";
As you pointed out, it's UTF8 not UTF-8 ;-)

Cheers - Neil

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux