When specifiying a client_encoding, the driver will always use UTF-8.
The problem is in connection.c, line number 1024, the code that reads:
if (!self->client_encoding || stricmp(self->client_encoding, "UNICODE"))
should read:
if (!self->client_encoding || !stricmp(self->client_encoding, "UNICODE"))
(the check with stricmp will always be true when client_encoding is different from UNICODE, not when it is UNICODE, wich is what's intended).
[melkor <NOSPAM> odyssey.com.uy]
if (self->unicode)
{
if (!self->client_encoding ||
- stricmp(self->client_encoding, "UNICODE"))
+ !stricmp(self->client_encoding, "UNICODE"))
{
QResultClass *res;
if (PG_VERSION_LT(self, 7.1))