brianc/node-postgres — pull request #253 by arkady-emelyanov (2013-01-23 11:30:45+00:00)
Title: force PQsetClientEncoding after connection was made

Hello all,

It's okay to use library when postgresql cluster is initialized with UTF-8 encoding. In other cases, only one ugly way set client encoding is perform query "set client_encoding='utf-8'". (Yep, we have some legacy applications which works with KOI8-R cluster).

So, library work's only with UTF-8 encoding and encoding is hardcoded into library, why not force to set client_encoding right after connection was made?