You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2004/03/26 22:53:49 UTC
DO NOT REPLY [Bug 27995] New: -
"UTF-16" encoding should be used in LSSerializer.writeToString
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: xerces-j-dev@xml.apache.org
ReportedBy: nnissar@ca.ibm.com
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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org