you may want to try InputStreamReader/ByteInputStream to read the incoming xml, and there you have the possibility to specify the encoding
I guess the default encoding in websphere is not UTF-8 and that is why you see all those junk characters.
try reading the message as bytes and then convert it to required encoding also when using System.out.println(), do not forget to specify the encoding
posted 12 years ago
Thanks Faraz. The issue got resolved. It was insertion of beginning of file characters in the XML which was first getting saved. I am removing those characters and now it is working. Thanks for the input.
Squanch that. And squanch this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!