Posted: Wed Dec 31, 2008 12:21 am Post subject: UTF-8 with migrated MRM message set?
Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
Hi,
I need some guidance here. Sorry if this has been discussed earlier.
I have broker version 6007 and we have migrated message set with xml wire format and quite a lot business logic in mapping from XML parser into it.
Now we want to send source messages in UTF-8 encoding.
If I send the message with self made Java application using JMS interface, everything goes fine. Special chars(for example Cyrillics) works fine and the output message will get UTF-8 encoding to the xml declaration part.
I can see the special chars in the user trace after mapping
(0x03000000):XXXX = 'TÔLE'
but when message is serialized to the bitstream chars are poisoned
and the XML encoding will get something else than UTF-8 for example encoding="ibm-..."
I have no ideas what to try.
Marko
Oh, one more thing if I map from XML parser to XML parser everything works fine also with C application...
Posted: Wed Dec 31, 2008 1:31 am Post subject: Solved
Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
Sorry,
I made(at last) some difference analysis of the user trace after mapping for outgoing messages and find that MQRFH2 header added by the flow --for the messages send with C -app/MQI-- were not correct.
Instead of the
CodedCharSetId = 1208
there was
CodedCharacterSetId = 1208.
A small but significant difference. It was quite a hard to find for me ;.)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum