[CONJ-369] Encoding on clob column Created: 2016-10-13 Updated: 2016-10-25 Resolved: 2016-10-20 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.4.6, 1.5.3, 1.5.4 |
| Fix Version/s: | 1.5.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Peter Rosendahl | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
$ mysql -V |
||
| Issue Links: |
|
||||||||
| Description |
|
We seem to have a similar problem to The following test works with 1.2.3 and fails with 1.4.6, 1.5.3, 1.5.4. Using useUnicode=false&characterEncoding=latin1 in the jdbc url makes no difference.
Output:
This is what's actually written to the table:
"C384C396C39C" is the UTF-8 encoded form of "ÄÖÜ", so the INSERT seems to write UTF-8 instead of latin1. |
| Comments |
| Comment by Diego Dupin [ 2016-10-19 ] |
|
issue confirmed. In binary format, Clob data are send in UTF-8 format and not encoded according to Table/column charset. |