title: Replacing double backslashes with single backslash
body: <p>I have a string "\\u003c", which belongs to UTF-8 charset. I am unable to decode it to unicode because of the presence of double backslashes. How do i get "\u003c" from "\\u003c"? I am using java.</p>
  
  <p>I tried with,</p>
  
  <pre><code>myString.replace("\\\\", "\\");
  </code></pre>
  
  <p>but could not achieve what i wanted.</p>
  
  <p>This is my code,</p>
  
  <pre><code>String myString = FileUtils.readFileToString(file);
  String a = myString.replace("\\\\", "\\");
  byte[] utf8 = a.getBytes();
  
  // Convert from UTF-8 to Unicode
  a = new String(utf8, "UTF-8");
  System.out.println("Converted string is:"+a);
  </code></pre>
  
  <p>and content of the file is</p>
  
  <blockquote>
    <p>\u003c</p>
  </blockquote>