title: Java string encoding conversion within a webpage
body: <p>I have a webpage that is encoded (through its header) as <code>WIN-1255</code>. 
  A Java program creates text string that are automatically embedded in the page. The problem is that the original strings are encoded in UTF-8, thus creating a Gibberish text field in the page.</p>
  
  <p>Unfortunately, I can not change the page encoding - it's required by a customer propriety system.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>The page I'm creating is an RSS feed that needs to be set to WIN-1255, showing information taken from another feed that is encoded in UTF-8.</p>
  
  <p><strong>SECOND UPDATE:</strong></p>
  
  <p>Thanks for all the responses. I've managed to convert th string, and yet, Gibberish. Problem was that XML encoding should be set in addition to the header encoding.</p>
  
  <p>Adam</p>