DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6008>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6008

encoding assignment error in TreeView sample

           Summary: encoding assignment error in TreeView sample
           Product: Xerces2-J
           Version: 2.0.0 [beta 4]
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


(1) In samples/ui/DOMParserSaveEncoding.java
   String _mimeEncoding = "UTF8";
should be changed to
   String _mimeEncoding = "UTF-8";
as the variable means a IANA encoding value.

(2) Some lines further down
   } else   // Should never return null
       javaEncoding = "UTF8";
should be changed to
   }
   if(javaEncoding == null) // Should never return null
       javaEncoding = "UTF8";
Otherwise the function will return "null",
if the call to EncodingMap.getIANA2JavaMapping(..) two lines
above returns "null".
The wrong default mimetype (see above) actually causes exactly this
problem.
Regards Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to