I have text string (Java String) which should contain 'gerald.o'leary'
.
In realty it contains a control character in addition to the rest, 'c2'. I have included the hex dump, please see image1.png
for a hex dump.
When I save it to the db and read it back by running SQL in a client and copy pasting into a hex editor I see c2 replaced by 3f, please see image2.png
.
I could have lived with it but for the fact when these two strings are compared in Java using String.equals(), false is returned.
Can somebody please explain what is going on here?!