--- pgadmin3/src/db/pgConn.cpp 2003-06-16 08:55:52.000000000 -0400 +++ pgadmin3.new/src/db/pgConn.cpp 2003-06-24 21:57:22.000000000 -0400 @@ -105,13 +105,13 @@ #if wxUSE_UNICODE wxLogInfo(wxT("Setting client_encoding to 'UNICODE'")); - if (PQsetClientEncoding(conn, "UNICODE")) + if (!PQsetClientEncoding(conn, "UNICODE")) wxLogError(wxT("%s"), wxString(PQerrorMessage(conn), wxConvUTF8).c_str()); #else wxLogInfo(wxT("Setting client_encoding to 'SQL_ASCII'")); - if (PQsetClientEncoding(conn, "SQL_ASCII")) + if (!PQsetClientEncoding(conn, "SQL_ASCII")) wxLogError(wxT("%s"), PQerrorMessage(conn)); #endif