tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark R. Diggory" <mdigg...@latte.harvard.edu>
Subject Re: JSTL XML and multibyte characters
Date Sun, 18 Jul 2004 17:09:13 GMT
You might explore the issue with JAXP/SAX/Xerces initially to see if it 
is a parser level issue, JSTL XML simply is a wrapper around JAXP.

-Mark

Dylan MacDonald wrote:
> Hi -
> 
> I would like to store some multibyte content in an xml file and then
> retrieve and display that content using the JSTL XML taglib.
> 
> This works beautifully with extended characters like é, ß, etc.  However the
> application chokes on Unicode or UTF-8 encoded XML files with the error
> "javax.servlet.jsp.JspException: Start of root element expected."  I believe
> this is caused by the encoding adding extra characters to the beginning of
> the file (before <?xml version="1.0" encoding="UTF-8"?>). And, for what it's
> worth, multibyte characters come out as garbage when the XML file is encoded
> as ANSI.
> 
> Anyone have any ideas about how to store multibyte content in XML and then
> successfully output it to a JSP?
> 
> Thanks,
> 
> 
> Dylan MacDonald
> Senior Web Designer
> GNX
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 

-- 
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message