When using the GPDB provided JDBC driver to connect to GPDB, the script may return the following error:
unexpected mismatch of client_encoding and server _encoding
However, using the postgresql JDBC driver is successful.
This is due to the fact that the server encoding and client encoding do not match (case sensitive).
Server encoding: UTF8
Client encoding: utf8