cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Koechlin <skoech...@ivision.fr>
Subject Re: [C1] : accent interpretation !
Date Thu, 10 May 2001 15:19:49 GMT
Isabelle Boyer wrote:
> I do a SQL request in my xml document and the data are already in html
> format (i.e "é" is writing &eacute; and etc..) in the database.
> 
> The request is done but in the result, the accent are not interpreted
> correctly.
>  Here is what 's happend : the character "&" is interpreted in "&amp;" so
> the rest is not right.

You have to parse the result, I don't think a DOM Tree has any encoding,
just
unicode strings. If you are using esql; you can try to adapt
'esql:get-xml'
to use jTidy, or use a custom EntityResolver with your parser.

-- 
Sébastien Koechlin - IVision - skoechlin@ivision.fr

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message