Problem when reading non ascii chars
I have a requirement here when an XML message is being parsed. Due to some additional enhancement to output XML I went to write a java custom code to add new tags to existing XML. However, as XML message consists of non ascii chars, when entire xml doc read as string, java internal conversions are happening from non ascii to ascii.. this results as some new char(non- ascii) apprearing in target XML. Can any one help me how can I make sure non ascii chars will pass as it is...
Source of XML looks like
after parsing it comes as <CANDTOWNCITY>DÃ¼sseldorf</CANDTOWNCITY>
my requirement is : data should come as <CANDTOWNCITY>Düsseldorf</CANDTOWNCITY>