Nino Saturnino Martinez Vazquez Wael wrote:


Nino Saturnino Martinez Vazquez Wael wrote:


mr.andersen wrote:
The idea of escaping the characters is not possible, since the reciever
doesn't expect that.

I guess both sender and reciver should expect it.. Okay no go for this then...
Just thought of something though, you could try to send the char as an escaped unicode. like this : stringIwanttosend+= \u00C6 ;

That should append æ...
With that I mean that you dont have to worry about your file encoding... If it's something system wise it'll produce the exact same error...
The text I'm trying to send throw cxf is hardcoded at this point.

About the encoding for my files - do you mean java files or du you assume my
text was being read from a file?

I actually assumed, that you were testing this directly from your java source.. I've had some trouble in other projects where encoding were set by eclipse, forexample macroman, or windows cpXXXX... This could probably cause trouble aswell..
Nino.Martinez wrote:
Hmm, could'nt you just escape it(that would be soft fix)?


this might be a dumb question, but which kind of encoding do you use on your files? Or are the chars fetched/passed dynamically via db etc?

regards Nino

mr.andersen wrote:
I have at problem with sending nordic charaters such as æøå via SOAP over
MQ.
I'm using cxf version 2.0.1 and SAAJ version 1.3.

I have tried to trace where is could go wrong and what I can see, the å looks okay when it is added to W3CDOMXMLStreamWriter.writeCharaters(),
but
when the SOAPMessage.writeTo() method is called with System.out or
OutputStream in SAAJOutInterceptor it is viewed as å.

Can anyone tell me if I can do anything to avoid this behaviour or have
it
something to do with the SAAJ implementation?

--
-Wicket for love
-Jme for fun

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684







--
-Wicket for love
-Jme for fun

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684

Reply via email to