Hi, I would like to know what's the best way to make the JDBC driver work with UTF8 strings as needed?
When I do:
I have to use this:
and that's inconvenient, is there any parameters for JDBC URL, or some settings in connection, etc, to make setString work normally with UTF8 strings?
When I do:
pStmt.setString(1, myString);it doesn't insert correct unicode characters in db (the charset and collation are correct there)
I have to use this:
pStmt.setBytes(1, myString.getBytes("utf8"));
and that's inconvenient, is there any parameters for JDBC URL, or some settings in connection, etc, to make setString work normally with UTF8 strings?