Hello!

In the StringUtil class the putting into Unicode is
    public static void putUncompressedUnicode(final String input,
            final byte[] output,
            final int offset) {
        int strlen = input.length();

        for (int k = 0; k < strlen; k++) {
            char c = input.charAt(k);

            output[offset + (2 * k)] = (byte) c;
            output[offset + (2 * k) + 1] = (byte) (c >> 8);
        }
    }

For latin symbols it will be:
abc->a_b_c_  (underline is substitution for the 0x00)


In the getFromUnicode:
         byte[] bstring = new byte[len];
         int index = offset + 1;
         // start with low bits.
 
         for (int k = 0; k < len; k++) {
             bstring[k] = string[index];
             index += 2;
        }
it is supposed that 
_a_b_c -> abc


Could you make it clear?
Unicode is _a_b_c (the first byte has high byte and the second byte has little byte ) ?



Sergei Kozello.

Reply via email to