title: How to convert cp1251 to utf-8 programmatically in Java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/229015/encoding-conversion-in-java">Encoding conversion in java</a>  </p>
  </blockquote>
  
  
  
  <p>Actually I need an example, method to convert from cp1251 encoding to utf-8 in Java.
  For example, I don't have a headache in PHP with this question because of: </p>
  
  <pre><code>iconv($str, "cp1251", "utf-8");
  </code></pre>
  
  <p>So, may be someone had an experience to make these kind of things in Java, please help.
  Thx in advance.</p>