No any problem since migration to Connector/J 5.0.6
Posted by: Bambarbia Kirkudu
Date: June 07, 2007 07:15PM

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!

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.