By "prolog", I assume you mean xml processing instruction ("xml pi").  
http://www.w3.org/TR/REC-xml/#NT-PI
http://www.w3.org/TR/REC-xml/#NT-XMLDecl  

I'm pretty sure these are used only for general data streams, such as
files and resources
to help the consumer identify and process the data as xml.  In the case
of SOAP, I think
the fact the the data is XML is implied - I've never seen SOAP messages
use xml-PIs the
way you suggest.

There must be some configuration to set this.

Thanks,

   -Chris W.


-----Original Message-----
From: Benson Margulies [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 19, 2008 10:16 PM
To: [email protected]
Subject: Re: Dealing with non-UTF-8 messages

This is not a current feature of CXF. If the messages had prologs with
encodings, all would work.

Better, put an interceptor at the front to transcode to UTF-8 or add
prologs?

Can you tell us if this problem is specific to some app of yours or more
generic, to help motivate (or not) effort?

On Tue, Aug 19, 2008 at 4:47 PM, Wolf, Chris (IT)
<[EMAIL PROTECTED]> wrote:
> We now have some messages that contain iso-8859-1 (but non-ascii) 
> characters, which apparently, are not UTF-8, e.g. accented characters 
> used in Spanish and/or French.  These are causing exceptions citing 
> invalid UTF-8 character sequences.
>
> I was able to eliminte one source by explicitly setting the encoding 
> to "iso-8859-1"
> in the parser of one of our interceptors, but not the error simply 
> migrated to one of the CXF built-in interceptors.  Is there a way to 
> globally set the encoding?
>
> I searched the FAQs and list archives and found nothing helpful.
>
> Thanks,
>
>   -Chris W.
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.

Reply via email to