It seems PHP PosgreSQL PDO driver does not accept charset parameter.
This does not work (as charset is missing in doc at http://www.php.net/manual/en/ref.pdo-pgsql.connection.php):
$db = new PDO('pgsql:host=localhost;dbname=database;charset=WIN1250', 'user', 'pass');
How can I set charset witch client is using?
SET NAMES? Are you sure this is PostgreSQL?NAMESas an alias forclient_encodingdespite using the DB for years. Interesting. (It's a good idea to showselect version()in your questions by the way). It isn't clear if your edit means that you actually found a solution to the problem or not. If you did, undelete your answer and explain it a little more.