=== modified file 'src/com/mysql/jdbc/StringUtils.java' --- src/com/mysql/jdbc/StringUtils.java 2014-05-15 16:27:30 +0000 +++ src/com/mysql/jdbc/StringUtils.java 2014-07-02 19:52:33 +0000 @@ -2064,7 +2064,7 @@ Charset cs = findCharset(encoding); - ByteBuffer buf = cs.encode(CharBuffer.wrap(value.toCharArray(), offset, offset + length)); + ByteBuffer buf = cs.encode(CharBuffer.wrap(value, offset, offset + length)); // can't simply .array() this to get the bytes // especially with variable-length charsets the