0 Replies Latest reply on Jun 11, 2004 7:14 AM by Frode Halvorsen

    XML-Parser does not decode correctly ?

    Frode Halvorsen Newbie

      I am using JBoss 3.2.3, and the JDom XML-package. This package uses the same parser JBoss already has installed.

      When I parse documents, it seems that the encoding in the declaration-tag is ignored. The parser does not convert any encoded characters to unicode, thus every string is stored exactly as in the XML-document.

      Anyone with any ideas ?

      two examples :

      <?xml version="1.0" encoding="UTF-8"?>
      <root>
      <test testatt="Tilbehør"/>
      </root>
      
      <?xml version="1.0" encoding="ISO-8859-1"?>
      <root>
      <test testatt="Tilbehør"/>
      </root>

      Those two samples rendres the same in IE (encoded different),
      But when parsing them in JBoss the attribute-value is exactly as in the files.
      Why ?