Azure-search Thanks for posting your question in Microsoft Q&A. Based on your description and the code snippet, you are using IBM MQ C# library and would like to set CCSID to 1208 when writing a message to MQ queue. Is that correct? (Correct me if I misunderstood)
If so, as per doc: https://www.ibm.com/docs/en/ibm-mq/7.5?topic=interfaces-mqmessage, you can set the value using CharacterSet
property in MQMessage
class to 1208 as follows:
// Set the CCSID value to 1208
MQMessage message = new MQMessage();
message.CharacterSet = 1208;
Doc reference:
Note: ReadString
method reads in Unicode and WriteString
method converts the value based on the value set.
I hope this helps with your question and let me know if you have any other.
If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.