I have a question. Right now one of the field in our database, the Comments field, which is coming from other online systems, has encoded characters in it. For example, it's possible to have ''' in the Comments field instead of \'. Or '"' in the Comments field instead of \". How can I decode them back to \' and \" in Java? I tried java.net.URLDecoder.decode(comments) and it didn't work. What do I do?
posted 12 years ago
The encoded code for \' is '& # 39;'. On my previous post, '& # 39;' is automatically decoded by HTML to \'. The \" is encoded to '& QUOT;'. How do I decode them back to \' and \"?