Do not issue the query set names with Connector/J, as the
set names
driver will not detect that the character set has changed, and will continue to use the character set detected during the initial connection setup.