Problem with non ASCII codes
I had posted this thread in java beginner, however still want to hear some inputs from experts.
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>