Removing non printable characters
<p>I have a column in database which contains non printable characters;</p>

<pre><code>String xyz = "Company Name\r\n Magna";
</code></pre>

<p>Once retrieved from database, in java, the values is shown as below</p>

<pre><code>String companyname = "Company Name\\r\\n Magna";"
</code></pre>

<p>It adds an addtional escape character. How can i remove the non printable characters now ?</p>

<pre><code>companyname.replaceAll("\\p{Cntrl}", ""); // Doesn't work.
</code></pre>

<p>Even if i use <code>StringBuffer</code>, it won't work because of additional escape character.</p>

<p>Please advice.</p>
