You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by chimaira <de...@hotmail.com> on 2012/03/21 10:21:59 UTC
CXF message encoding :how to get Hexa encoding in uppercase .
Hi there,
Actually when I apply an ascii encoding on message context with :
Message msg = PhaseInterceptorChain.getCurrentMessage();
message.put(Message.ENCODING, "ASCII");
I got an encoding with lowercases : ex : [ 'e0', 'e6' ]. I wish to get that
encoding in uppercase -> 'E0', 'E6' .
Is there a way to perform that ?
Thank a lot,
G.P
--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-message-encoding-how-to-get-Hexa-encoding-in-uppercase-tp5582298p5582298.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: CXF message encoding :how to get Hexa encoding in uppercase .
Posted by Daniel Kulp <dk...@apache.org>.
On Wednesday, March 21, 2012 02:21:59 AM chimaira wrote:
> Hi there,
>
> Actually when I apply an ascii encoding on message context with :
>
> Message msg = PhaseInterceptorChain.getCurrentMessage();
> message.put(Message.ENCODING, "ASCII");
>
>
> I got an encoding with lowercases : ex : [ 'e0', 'e6' ]. I wish to get
> that encoding in uppercase -> 'E0', 'E6' .
>
> Is there a way to perform that ?
Not that I'm aware of. We just pass the encoding flag down into the StAX
output factory and it handles it. Normally, that would mean woodstox.
The lowercase is completely valid so it doesn't surprise me if that's what
woodstox is choosing. Looking into the woodstox EncodingWriter class, I
see:
buf[ptr++] = (byte) ((c < 10) ? ('0' + c) : (('a' - 10) + c));
so definitely based on the lower case letters.
Dan
>
> Thank a lot,
>
> G.P
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/CXF-message-encoding-how-to-get-Hexa-enco
> ding-in-uppercase-tp5582298p5582298.html Sent from the cxf-user mailing
> list archive at Nabble.com.
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com