Daniel Migowski <dmigowski@ikoffice.de> writes:
> The command
> SET client_encoding = 'UTF8'
> throws an exception in the driver, because the driver expects UNICODE.
Er, what driver exactly? Perhaps you need a more up-to-date version
of said driver? 'UTF8' has been our standard spelling of this
encoding's name for quite some time now.
regards, tom lane