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 » IBM MQ API Support » WriteString writes strange character

Post new topic  Reply to topic
 WriteString writes strange character « View previous topic :: View next topic » 
Author Message
cliao
PostPosted: Thu Nov 11, 2004 8:03 am    Post subject: WriteString writes strange character Reply with quote

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
View user's profile Send private message
ewilliams
PostPosted: Thu Nov 11, 2004 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Thu Nov 11, 2004 11:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » WriteString writes strange character
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.