diff --git a/cake/libs/model/datasources/dbo/dbo_postgres.php b/cake/libs/model/datasources/dbo/dbo_postgres.php index bbe7d5623..32b89d80f 100644 --- a/cake/libs/model/datasources/dbo/dbo_postgres.php +++ b/cake/libs/model/datasources/dbo/dbo_postgres.php @@ -757,7 +757,7 @@ class DboPostgres extends DboSource { * @return string The database encoding */ function getEncoding() { - return pg_client_encoding($this->connection); + $cosa = $this->_execute('SHOW client_encoding')->fetch(); } /**