title: java resultset.getstring("col_name") query
body: <p>I have a simple query regarding <code>ResultSet.getString()</code> method in java for JDBC.<br>
  Suppose the value in the Database column is having a <code>\</code> which is javas escape character e.g. <code>\n</code> or <code>\t</code> etc.<br>
  When i retrieve the value as <code>getString()</code> i see one more escape character is getting added and the actual meaning of this <code>\n</code> is now a string literal only.<br> So i had to unescape java and then use it properly.</p>
  
  <pre><code>String s= rs.getString("col_name");
  </code></pre>
  
  <p>When <code>s</code> contains `\n':</p>
  
  <pre><code>System.out.println(s)
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>\n
  </code></pre>
  
  <p>After unescaping java using apache common <code>StringEscapeUtils</code>
  <br>output:</p>
  
  <pre><code>System.out.println("hi"+s+"hello");
  hi
  hello
  </code></pre>
  
  <p>My question is who is adding this extra <code>\</code> before unescaping??
  Sorry if it is a dumb question.</p>