title: Java - Converting copyright symbol to &copy;
body: <p>I have a string coming in, which I need to store in the db. Now the string does contain the copyright symbol ©. I want to convert this to &amp;copy ; so that it can be displayed properly on each and every browser and with every encoding standard.</p>
  
  <p>This is where I've reached up until now <br><br>
  - tried replace(), which definitely wouldn't have worked anyways for the copyright character.<br>
  - tried turning tables by setting different encoding standards to view data in the browser, it gets displayed as a � <br>
  - converted the string to a byte array with UTF-8 charset and figured out that -62 is that ASCII value for the copyright character. Now the problem is that the string coming in could be quite big and splitting it up to a byte array and then forming a string back would be very expensive.<br></p>
  
  <p>Any help is appreciated.</p>