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

http://issues.apache.org/bugzilla/show_bug.cgi?id=27995

"UTF-16" encoding should be used in LSSerializer.writeToString

           Summary: "UTF-16" encoding should be used in
                    LSSerializer.writeToString
           Product: Xerces2-J
           Version: 2.6.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


LSSerializer.writeToString method serializes the output to a DOMString which 
gets returned.  PR change in DOM Load and Save spec states that "The encoding 
used is the encoding of the DOMString type, i.e. UTF-16. "  [1]

Could be wrong in thinking a change is necessary (I'm not sure if the output is 
already being encoded in UTF_16...) but proposed patch to DOMSerializerImpl 
sets the encoding of the output format to UTF-16 in the writeToString method 
before serialization is started.

[1]http://www.w3.org/TR/2004/PR-DOM-Level-3-LS-20040205/load-save.html#LS-
LSSerializer-writeToString

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

Reply via email to