tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dylan MacDonald" <>
Subject JSTL XML and multibyte characters
Date Thu, 15 Jul 2004 21:56:02 GMT
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?


Dylan MacDonald
Senior Web Designer

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

View raw message