Posted: Wed Jan 09, 2013 2:09 am Post subject: Message encoding issues
Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
Hi,
Scenario:
Sending application is sending the UTF-16 Bigendien message with CCSID set to 1200 (I can see in the MQMD header and confirm that the CCSID is set 1200). And I used rfhutilc to read the message from queue. And when I see the data tab in rfhutilc, the message it looks fine and the hexa is displayed correctly. For instance for "<" hex is 0X"003C". However the same message I am writing into a file using RFHUTILC and then when I open the file in a editer and see the HEX values it has become "0X3C00". Looks like they are getting converted UTF-16 LE. But that is strange as I am doing any conversion. And if I choose option on rfhutilc to exclude the MQMD and just write the data into file. The data looks perfectcly fine i.e hex value of "<" is shown as 0X "003C".
Can some please advice where is it getting converted and why is different when I save with MQMD and without MQMD using rfhutilc.
Thanks in anticipation. _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future
Might all depend on the "endian-ness" of the platform on which you read the message and save it...
Why not use UTF-8 ? _________________ MQ & Broker admin
I asked applications to use UTF-8, some how they are not okay with it...
if it depends on the system..how does it vary when I save it with MQMD and without MQMD??? _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future
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