[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: some character entities are now '?'

  • To: xerces-j-user@x...
  • Subject: Re: some character entities are now '?'
  • From: Elliotte Rusty Harold <elharo@m...>
  • Date: Wed, 23 Jul 2003 18:03:57 -0400
  • Cc: xml-dev@l...
  • In-reply-to: <OF64F55C22.F67C038A-ON85256D6C.00767F90-85256D6C.007744DC@u...>
  • References: <OF64F55C22.F67C038A-ON85256D6C.00767F90-85256D6C.007744DC@u...>

java character entity
At 5:41 PM -0400 7/23/03, David M Williams wrote:

Sun bug#4646959 
 http://developer.java.sun.com/developer/bugParade/bugs/4646959.html
That bug had some helpful info in it


Youch. What nasty bug. And contrary to Sun's claims this is a bug in 
Java 1.4. If I'm reading this right, any XML parser using 
InputStreamReader to translate UTF-8 into Java strings and chars is 
likely to miss malformedness errors that arise from bad UTF-8. This 
also seems to affect other character sets as well.

It looks like you could work around this in 1.4 to have 
InputStreamReader report the bad data. However, that code would not 
be portable back to Java 1.3 (which does not have this bug). Thus 
you'd need separate code bases for 1.3 and 1.4 or some really ugly 
reflection based code. We really need to get this fixed.
-- 

   Elliotte Rusty Harold
   elharo@m...
   Processing XML with Java (Addison-Wesley, 2002)
   http://www.cafeconleche.org/books/xmljava
   http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.