I've got some data from dbpedia using jena and since jena's output is based on xml so there are some circumstances that xml characters need to be treated differently like following :\[code\]Guns n ' Roses\[/code\]I just want to know what kind of econding is this?I want decode/encode my input based on above encode(r) with the help of javascript and send it back to a servlet.(edited post if you remove the space between & and amp you will get the correct character since in stackoverflow I couldn't find a way to do that I decided to put like that!)