=== modified file 'src/com/mysql/jdbc/Field.java' --- src/com/mysql/jdbc/Field.java 2012-07-11 14:22:24 +0000 +++ src/com/mysql/jdbc/Field.java 2014-01-23 12:59:35 +0000 @@ -739,17 +739,9 @@ stringStart, stringLength); } else { // we have no converter, use JVM converter - byte[] stringBytes = new byte[stringLength]; - - int endIndex = stringStart + stringLength; - int pos = 0; - - for (int i = stringStart; i < endIndex; i++) { - stringBytes[pos++] = this.buffer[i]; - } try { - stringVal = StringUtils.toString(stringBytes, encoding); + stringVal = StringUtils.toString(buffer, stringStart, stringLength, encoding); } catch (UnsupportedEncodingException ue) { throw new RuntimeException(Messages .getString("Field.12") + encoding //$NON-NLS-1$