No any problem since migration to Connector/J 5.0.6
No any problem since migration to Connector/J 5.0.6
I had this problem with 5.0.5
I run some tests:
- create byte array in Java byte[] bytes = {0,1,2,...,255}
- Create String using new String(byte[], "windows-1252")
- store in MySQL utf8
- Create String using new String(byte[], "ISO-8859-1")
- store in MySQL utf8
No any problems. I run also multithreaded tests.
Java replaces some bytes 0x80, 0x81, ... with regular question mark "???" in case of ISO-8859-1. Database receives "???" without exceptions. In case of "windows-1252", 0x80 is "Euro Currency Sign" - no problem.
I don't really know what caused the problem, possibly handshake of old version of driver... possibly some bugs in my own code... not sure! In case of a bug I'll try to locate it before reporting ;)
Thanks!