Elizabeth writes: > I wrote the following program and gave it the following XML: > > <?xml version="1.0" encoding="UTF-8"?> > <test> > <doc>“Here</doc> > </test> > > It seems to me that “ should be a left double quote, but Java > interprets it as ? as before. Here is the output: > > shelby $ java -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser > ShowChar test.xml > > > ? > Here > > > shelby$
This is really strange. I modified the characters(...) function to output an integer representation of the given character (followed by a space) and this is the output: 10 32 32 8220 72 101 114 101 10 So it correctly interpreted 8220 but, I surmise, the modification came about due to System.out.print(...). Perhaps it is trying to translate it to US-ASCII. Thank you, Elizabeth --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
