|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
CCSID Issue with amqmdnet |
« View previous topic :: View next topic » |
Author |
Message
|
cloucas |
Posted: Fri Mar 24, 2006 5:09 am Post subject: CCSID Issue with amqmdnet |
|
|
Apprentice
Joined: 10 Mar 2006 Posts: 37
|
I have been developing a c# application using the amqmdnet.dll library, with CSD09 MQ client installed on my PC.
While my code used to run OK when my PC was on Windows 2000, after formatting the disk and installing Windows XP I get an error when I try to define the queue manager. The error I get is 2059 and the event log entry produced is:
"CCSID supplied for data conversion not supported.
The program ended because, either the source CCSID '1253' or the target CCSID '437' is not valid, or is not currently supported.
Correct the CCSID that is not valid, or ensure that the requested CCSID can be supported."
The code segment is:
public string hostName = "10.1.100.95(1418)"; //Test
public string channel = "SYSTEM.DEF.SVRCONN";
public string qManager = "BK01K";
public int writeToQueue(string qName, byte[] message)
{
//This function puts a message to a queue
try
{
MQEnvironment.Hostname = hostName;
MQEnvironment.Channel = channel;
MQEnvironment.Port = 1418;
MQQueueManager qMgr = new MQQueueManager(qManager);
int openOptions = MQC.MQOO_OUTPUT;
The program fails once it tries to execute the MQQueueManager qMgr....
line.
I know that the remote queue manager has CCSID 1253, but I don't know how to set the client PC's (Win XP) CCSID to 1253...
Any ideas?
cloucas |
|
Back to top |
|
 |
questro |
Posted: Wed Mar 29, 2006 10:58 pm Post subject: |
|
|
 Newbie
Joined: 07 Mar 2006 Posts: 9 Location: Magic Land
|
I'm not sure, but does setting MQEnvironment.CCSID before making the attempt to connect to the queue manager make any difference?
I'm not convinced that setting the client codepage to match the server is the right solution though.
It might also be that you need to install a valid codepage conversion for the 437 / 1253 codepage pairing. |
|
Back to top |
|
 |
Nigelg |
Posted: Wed Mar 29, 2006 11:32 pm Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
1253 is Greek, so no conversion is possible from 437 <-> 1253.
The CCSID of the client is derived from the locale; this must be English of some kind for the CCSID to be 437. Set the locale of the client machine to Greek, and the derived CCSID will be 1253, to match the server. _________________ MQSeries.net helps those who help themselves.. |
|
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
|
|
|
|