You can create your own Serializer (see code inside the Marshaller() as
an example) and then configure it with the desired encoding.
Once done simply pass in the resulting DocumentHandler from a call to
Serializer#asDocumentHandler.
--Keith
Arnaud Blandin wrote:
>
> Hi Andres,
>
> it is not possible right now to access the Serializer via Castor.
> The only way for you to set the encoding right now is to change the source
> of Castor (Marshaller.java) to set the encoding by hand.
> This will normally change in future releases.
>
> Arnaud
>
> -> -----Original Message-----
> -> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> -> Andres Scheidegger
> -> Sent: Thursday, September 20, 2001 2:03 AM
> -> To: [EMAIL PROTECTED]
> -> Subject: [castor-dev] Setting the encoding
> ->
> ->
> -> Hi,
> ->
> -> Does anybody know how to specify the encoding to be used when
> -> marshalling with Castor XML. It seems that utf8 is used by default,
> -> which gives me a problem with german Umlauts (I would like to see the
> -> Umlauts instead of &#xxx; in the output).
> ->
> -> Any help is appreciated.
> ->
> -> --
> -> Andres Scheidegger
> -> GLUE Software Engineering AG, Zieglerstrasse 34, 3007 Bern, Switzerland
> -> Phone: (+41) 31 385 3032, Fax: (+41) 31 385 3018
> -> mailto:[EMAIL PROTECTED], http://www.glue.ch
> ->
> -> -----------------------------------------------------------
> -> If you wish to unsubscribe from this mailing, send mail to
> -> [EMAIL PROTECTED] with a subject of:
> -> unsubscribe castor-dev
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev