I am getting a result from the database and the column is declared as a char(50). I understand that this will be padded with spaces, but I can't get the spaces trimmed in java code using String.trim().
Isn't this strange behaviour? When trying to trim, the data is now a java string. Aren't the java strings and database strings using ANSI char codes? I checked the hex value and it was \\u0020, which is the same as a java space char.
Isn't this strange behaviour? When trying to trim, the data is now a java string. Aren't the java strings and database strings using ANSI char codes? I checked the hex value and it was \\u0020, which is the same as a java space char.