Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello guy,

I am using IBM MQ to send message from my .net application(which is running on widows operationg system) to linux operating system(receiver end) but while receiving one extra space(.) coming after every char.

I am using blew code to send message.
Please advice.
C#
MQMessage _queueMessage;
               _queueMessage = new MQMessage();
               _queueMessage.Format = MQC.MQFMT_STRING;
               _queueMessage.ApplicationIdData = _applicationId;
               _queueMessage.WriteString(strMessage);
               _queuePutMessageOptions = new MQPutMessageOptions();
               _queuePutMessageOptions.Options = MQC.MQPMO_SET_ALL_CONTEXT;
               _queue.Put(_queueMessage, _queuePutMessageOptions)
Posted
Updated 12-Nov-11 21:44pm
v2
Comments
Richard MacCutchan 13-Nov-11 3:50am    
Are you sure you are not confusing Unicode (16-bit characters) with ASCII (8-bit)?
Sergey Alexandrovich Kryukov 13-Nov-11 21:55pm    
Richard, for goodness sake: Unicode is not a 16-bit code, even UTF-16 is not, it can express code points well above 16-bit. All UTFs can, from UTF-8 to UTF-32. First set of characters which fits in 16 bit is called BMP (basic multilingual plane), but some more planes are standardized. Look at http://Unicode.org to make sure you understand it.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900