I am trying to parse an XML file using SAX parser which contains Swedish character "��� ��� �". I have used the UTF-8 encoding in the XML document. <?xml version="1.0" encoding="UTF-8" ?>
But the parser gives me the exception:
If I use the encoding iso-8859-1, it works fine. <?xml version="1.0" encoding="iso-8859-1" ?>
Can anybody help me in understanding why it doesn't work with UTF-8 encoding. Is there any way I can parse my XML, using SAX parser with UTF-8 encoding.
Thanks! [ January 25, 2008: Message edited by: P Lavti ]
Originally posted by P Lavti: I have used the UTF-8 encoding in the XML document. <?xml version="1.0" encoding="UTF-8" ?>
Just doing that does not cause the file to be encoded in UTF-8. You actually have to save it out of your text editor, or whatever is creating the file, in UTF-8. You didn't do that. [ January 25, 2008: Message edited by: Paul Clapham ]
Sorry for my stupid question. When i viewed through a Difference Viewer it showed me a special symbol that was actually present after the numerals (II & III).
I am attaching the screen shot. But I don't know why the special symbol looks like white space rather than showing up something weird.