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 » CCSID Issue with amqmdnet

Post new topic  Reply to topic
 CCSID Issue with amqmdnet « View previous topic :: View next topic » 
Author Message
cloucas
PostPosted: Fri Mar 24, 2006 5:09 am    Post subject: CCSID Issue with amqmdnet Reply with quote

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
View user's profile Send private message
questro
PostPosted: Wed Mar 29, 2006 10:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nigelg
PostPosted: Wed Mar 29, 2006 11:32 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » IBM MQ API Support » CCSID Issue with amqmdnet
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.