Federico Mesplet wrote:
> 
>   Hi, I've been wandering around the mailing list and found some help about
> this issue, but it seems code that work for others doesn't for me. I think I'm
> doing sth wrong. This is the code I found for masrhalling with different
> encoding:
> 
> OutputFormat format = org.exolab.castor.util.Configuration.getOutputFormat();
> format.setEncoding("ISO-8859-1");
> Serializer serializer = org.exolab.castor.util.Configuration.getSerializer();
> serializer.setOutputFormat(format);
> serializer.setOutputCharStream(w);
> 
> Marshaller marshaller = new Marshaller(serializer.asDocumentHandler());
> marshaller.marshal(i, w);

You can also use:

marshaller.setEncoding(...);

> 
> I get Español instead of Español.

I haven't checked this myself, but these might be equivalent, the hex
value F1 might equivalent to the name entity 'ntilde'.

--Keith

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to