I'm not sure if I can create a junit test case. I'll see if I have time, but you should be able to reproduce the problem by placing an xml message with ISO-8859-1 encoding on a jms queue, which a jms BC polls. I'm using the "unreleased" v3.0.1 of smx and the jms queue is on ActiveMQ.
I think I've located the problem to the SourceTRansformer class, in which UTF-8 is hard-coded. At least this causes some of the problems (when trace logging the message). WHat happens is that the incoming message is transformed to a byte array and then read as if it was UTF-8 encoded (which it isn't). Not sure what you mean by BytesMessage and TextMessage. How do I specify that? I'm just dropping my xml message on the jms queue, from where the jms BC picks it up. gnodet wrote: > > Could you set up a simple junit test to reproduce the problem ? > Also you may want to try to send a BytesMessage as I guess you > send a TextMessage. If may be a workaround. > > On 12/6/06, Anders Hammar <[EMAIL PROTECTED]> wrote: >> >> I'm trying to post a ISO-8859-1 encoded xml message to a queue and read >> that >> with a jms BC. It works if the xml message is UTF-8 encoded, but >> ISO-8859-1 >> doesn't work. Do I need to do any specific configuration for this? (The >> xml >> message states that the encoding is ISO-8859-1.) >> >> [...] > > -- > Cheers, > Guillaume Nodet > > -- View this message in context: http://www.nabble.com/Problem-with-ISO-8859-1-encoding-and-jms-component-tf2767158s12049.html#a7718429 Sent from the ServiceMix - User mailing list archive at Nabble.com.
