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);

I get Español instead of Español.

Any help please?

TIA.

-----------------------------------------------
�� � Mail.ru ������������ ����������������� ������ �� ���������� �
������� ���-��� ��������! �������� � ������� �� ���� ���-���!
http://r.mail.ru/cln1941/oprosnik.mail.ru/om/


------------------------------------
Mail.Ru - ������, ��������, �������!
------------------------------------

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

Reply via email to