tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark R. Diggory" <>
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.


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
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Mark Diggory
Software Developer
Harvard MIT Data Center

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message