Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Won't Fix
-
1.1.7
-
None
-
Server set to Latin1 character set
Description
The Mariadb connector and the MySQL JDBC connector return different results for JdbcRowSet.getBytes(column). The MySQL connector converts the bytes to UTF-8 and the Mariadb connector does not. I had to add
bytes = new String(bytes, "UTF-8").getBytes();
to get the same results.
The JdbcRs.getCharacterStream(column) does convert the results to UTF-8.