PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

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

*** shadow/3559 Tue Sep 11 20:35:31 2001
--- shadow/3559.tmp.9082        Tue Sep 11 20:35:31 2001
***************
*** 0 ****
--- 1,45 ----
+ +============================================================================+
+ | Surrogate parir output bug                                                 |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3559                        Product: Xerces-J                |
+ |       Status: NEW                         Version: CVS extract             |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: Other                     Component: Serialization           |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                                |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ A Unicode character of that code point is greater than 0xffff is
+ printed as two character references like "�&#xdc00".  It
+ must be one character reference like "𐀀".
+ 
+ How to reproduce:
+ import org.apache.xerces.parsers.*;
+ import org.apache.xml.serialize.*;
+ import org.xml.sax.*;
+ import java.io.*;
+ import org.w3c.dom.*;
+ 
+ public class Serialize {
+     public static void main(String[] argv) throws Exception {
+         String xmlString =
+             "<root>\n"+
+             " <child 
+ attr='attr&#x2665;&#x10000;'>text&#x2665;&#x10000;</child>\n"+
+             "</root>\n";
+ 
+         DOMParser dp = new DOMParser();
+         dp.parse(new InputSource(new StringReader(xmlString)));
+         Document doc = dp.getDocument();
+ 
+         OutputFormat format = new OutputFormat("xml", "ISO-8859-1", false);
+         format.setPreserveSpace(true);
+         new XMLSerializer(System.out, format).serialize(doc);
+         System.out.println("");
+     }
+ }

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

Reply via email to