0 Replies Latest reply: Nov 19, 2009 9:02 AM by Thorbjørn Blixen-Finecke RSS

    Evaluation on code that is not UTF-8

    Thorbjørn Blixen-Finecke Newbie

      Hi

      I am not sure this is the right forum. If not i apologize.

      When running the mass tool on code that looks like this (substitute the html code for the actual character):

      public String universität;
      public String bel&oring;b;

      the tool fails like this:

      ERROR: 'Invalid byte 1 of 1-byte UTF-8 sequence.'
      ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Invalid byte 1 of 1-byte UTF-8 sequence.'

      file:///home/weblogic/mass/trunk/data/applicationA.DependencyExtractor.xml; Line #20818; Column #79; XSLT Error (javax.xml.transform.TransformerException): javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Invalid byte 1 of 1-byte UTF-8 sequence.

      the offending character is the ø, ä etc. characters.

      (the above error message is obtained running the tool in question directly: /home/weblogic/mass/trunk/tools/depfinder/bin/DependentsToHTML -in /home/weblogic/mass/trunk/data/applicationA.DependencyExtractor.xml)

      The applicationA.DependencyExtractor.xml starts off like this:

      <?xml version="1.0" encoding="utf-8" ?>

      Is there any way to work around this problem? (short of changing the code?)