Hi All,
Problem:
Some junk characters are written out after transformation while using
UTF-16 encoding.
Description :
I get the "Transformer" object from the TransformerFactory and then set the
output property ("encoding") as "UTF-16".
transformer.setOutputProperty("encoding","UTF-16")
After this the result which I get carries 2 junk charcters ("��<") before
the actual expected stuff.
Can someone suggest me a solution for this problem?
Thanks and Regards,
Ankur
PS : The incoming document is normal UTF-8 encoded.Can this be an issue ??