ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » surrogate pairs in UTF-16 data

Post new topic  Reply to topic
 surrogate pairs in UTF-16 data « View previous topic :: View next topic » 
Author Message
beth_carlin
PostPosted: Sun Sep 13, 2015 7:49 pm    Post subject: surrogate pairs in UTF-16 data Reply with quote

Acolyte

Joined: 08 Jun 2004
Posts: 64

Hi

One of the app team in other dept has a .net application that set ccsid
xmlMsg.characterSet = 1200 before put and the xml data to be put is encoded as UTF-16.

The qmgr the data to be put to has ccsid=1208 and the get application will not use any-convert option and will get the data from the same qmgr that was put to.

IBM info support

http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.ref.dev.doc/q104590_.htm

says WebSphere MQ does not support surrogate pairs.

My question:

if the xml data contain surrogate pairs, will the get application
see any problem with data ?
if yes
Could you suggest how to exclude surrogate pairs in their data?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 14, 2015 5:11 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

MQ does not alter the contents of the message body unless you tell it to convert the data, either at the GET or at your channels.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
tczielke
PostPosted: Mon Sep 14, 2015 7:16 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 941
Location: Illinois, USA

Based on what you described, the application will get the message unconverted and still in 1200. I doubt if anyone on this site can really answer if your application can handle surrogate pairs.

If your application was to convert the data from 1200 to 1208, it looks like MQ uses CESU-8 to convert surrogate pairs from 1200 to 1208-> https://en.wikipedia.org/wiki/CESU-8

According to that doc, CESU-8 is not an official part of the Unicode standard, so that is interesting.
_________________
Working with MQ since 2010.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » surrogate pairs in UTF-16 data
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.