Originally posted by Chetan Parekh:
They are not writing any encoding information in generated XML file. But it can have any encoding. So is there anyway by which I can determine the encoding of the XML file?
Then "they" may not be doing it correctly. If "they" don't declare an encoding in the XML document then they
must encode the document as UTF-8 or UTF-16. This is not optional, it is required by the XML recommendation.
So if they are not doing that, it is not your responsibility to fix the problem. It is their problem.
However it is possible that they are not competent to fix the problem. In that case some human agent will have to determine the actual encoding of the file. There is no automated way of doing it.
[ November 06, 2006: Message edited by: Paul Clapham ]