title: Special Characters and Java String
body: <p>I have text string (Java String) which should contain <code>'gerald.o'leary'</code>. </p>
  
  <p>In realty it contains a control character in addition to the rest, 'c2'. I have included the hex dump, please see <code>image1.png</code> for a hex dump.</p>
  
  <p><img src="https://i.stack.imgur.com/8klof.png" alt="enter image description here"></p>
  
  <p>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 <code>image2.png</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/DJDzV.png" alt="enter image description here"></p>
  
  <p>I could have lived with it but for the fact when these two strings are compared in Java using String.equals(), false is returned.</p>
  
  <p>Can somebody please explain what is going on here?!</p>