[CONJ-130] JdbcRowSet does not convert getBytes to UTF8 like the MySQL connector Created: 2015-01-05 Updated: 2017-06-15 Resolved: 2017-06-15 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.1.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Greg Babcock | Assignee: | Georg Richter |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Environment: |
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. |
| Comments |
| Comment by Diego Dupin [ 2016-08-24 ] |
|
All exchanges with server are using UTF-8 (write and read), and so doesn't need any convertion. I know this issue is old now, but do you remember which server you were using and version ? |
| Comment by Diego Dupin [ 2017-06-15 ] |
|
closing since no answer |