|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WriteString writes strange character |
« View previous topic :: View next topic » |
Author |
Message
|
cliao |
Posted: Thu Nov 11, 2004 8:03 am Post subject: WriteString writes strange character |
|
|
Novice
Joined: 08 Sep 2004 Posts: 23
|
this is the code I have,
*******************************************************
Dim mqMsg As MQMessage '* MQMessage instance
Dim mqPutMsgOpts As MQPutMessageOptions '* MQGetMessageOptions instance
objQueue = objQMgr.AccessQueue(strQname, MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING) '* open queue for output but not if MQM stopping
mqMsg = New MQMessage
mqMsg.WriteString(strMsg)
mqMsg.Format = MQC.MQFMT_STRING
mqMsg.Encoding = MQC.MQENC_NATIVE
mqPutMsgOpts = New MQPutMessageOptions
objQueue.Put(mqMsg, mqPutMsgOpts)
objQueue.Close()
***********************************************************
this is what I see in the queue,
Testing最g最g最g最
Please help!!
Thanks,
Lei |
|
Back to top |
|
 |
ewilliams |
Posted: Thu Nov 11, 2004 8:50 pm Post subject: |
|
|
 Apprentice
Joined: 27 Nov 2002 Posts: 30 Location: Portland
|
Try adding mqMsg.CharacterSet = 437 or any of the other CODESET_* constants, depending on platform. |
|
Back to top |
|
 |
kirani |
Posted: Thu Nov 11, 2004 11:50 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
use mqMsg.CharacterSet = MQC.MQCCSI_Q_MGR _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|