Re: [HACKERS] libpq PGresult object and encoding

2010-02-21 Thread Jeroen Vermeulen
Jeff Davis wrote: libpq has a PQclientEncoding() function that takes a connection object. However, the client encoding is, in some cases, a property of the result object. For instance, if your client_encoding changes, but you keep the result object around, you have no way to determine later

[HACKERS] libpq PGresult object and encoding

2010-02-15 Thread Jeff Davis
libpq has a PQclientEncoding() function that takes a connection object. However, the client encoding is, in some cases, a property of the result object. For instance, if your client_encoding changes, but you keep the result object around, you have no way to determine later what encoding the