cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: "&" in XML Output
Date Mon, 21 Oct 2002 00:21:07 GMT
apurva zaveri wrote:
> How can I have the following in my xml output.
> 
> <word spelling="SPELL"
> pronunciation="m&#601;mba&#618;"/>
> 
> This uses and xml serializer.
> 
> The result i get is
> 
> <word spelling="SPELL"
> pronunciation="m&amp;#601;mba&amp;#618;"/>

Are you adding the attribute value through ssome Java code?
Use "m\u0259mba\u026A" in this case (study the Java languaga
documentation for how to use arbitrary Unicode characters in
a string).
If you are pulling the stuff from a DB or something, either
try to get UTF-8 code into the source form the start, or you
have to pass it somehow through a parser.

J.Pietschmann



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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