when i read the entire XML file in JEditorPane all works fine except the BOM charatcer. I get a BOM charatcer (a dot) at start of file. If i remove the dot and save file it is saved as ANSI.In notepad++ it shows (ANSI as UTF-8) encoding for the same file. If i dont remove the dot XML parser fails to parse the document. Can u help me with this.???? thanks.
Share
If your XML file only contains ASCII characters it will be valid ASCII/ANSI as well as valid UTF8, so don’t worry about Notepad++ recognizing the file as ANSI.
While you can use a BOM for UTF8, it is discouraged because it will break a lot of Unix programs and you really shouldn’t do it.