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 » WebSphere Message Broker (ACE) Support » SYBASE database with windows-1250 charset

Post new topic  Reply to topic
 SYBASE database with windows-1250 charset « View previous topic :: View next topic » 
Author Message
pjanura
PostPosted: Thu Jun 13, 2013 3:59 am    Post subject: SYBASE database with windows-1250 charset Reply with quote

Newbie

Joined: 13 Jun 2013
Posts: 3

Hi all,
i have trouble with sybase database with windows-1250 encoding. I have attached odbc configuration bellow.

I have no trouble with connection. But diacritics is broken. In my flow, that use odbc, is MQInput set to convert message into CCSID 1250.

I hope, it should be correct setup.

In debug mode everything looks fine. But after validation in sybase diacritics is broken.

Do you have some experience with this state at sybase database? Can I modify odbc configuration file, in some way that will set up expected charset?

Thanks for help
Petr

[SYBASE]
Driver=/mqsi70/ODBC/V6.0/lib/UKase24.so
Description=DataDirect 6.0 Sybase Wire Protocol
Database=BACKENDWR
ApplicationUsingThreads=1
EnableDescribeParam=1
OptimizePrepare=1
SelectMethod=0
NetworkAddress=test-.tda,5300
SelectUserName=1
ColumnSizeAsCharacter=1
EnableSPColumnTypes=2
LoginTimeout=0
TimestampTruncationBehavior=1
XAConnOptBehaviour=3
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jun 13, 2013 4:10 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Don't set MQInput to convert. Broker will convert the data when it builds the logical message tree.

Don't set mq channels to convert.
Back to top
View user's profile Send private message
pjanura
PostPosted: Fri Jun 14, 2013 3:43 am    Post subject: RE:SYBASE database with windows-1250 charset Reply with quote

Newbie

Joined: 13 Jun 2013
Posts: 3

Ok, i have canceled convert mode at MQInput. I have set Charset=cp1250. But it didnt help Do you have some tip how to solve this issue?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Jun 14, 2013 3:47 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

What version of WMB are you using?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
pjanura
PostPosted: Fri Jun 14, 2013 4:11 am    Post subject: Reply with quote

Newbie

Joined: 13 Jun 2013
Posts: 3

I am using 7.0.0.4.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Jun 14, 2013 4:16 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You might check with DataDirect for an updated driver. You might also like to open a PMR after you collect MustGather doc.

The DataDirect ODBC driver uses the server-platform-configured code page value as its client code page.

For Windows, the server-platform-configured code page value can be found in the Windows registry ACP value. To locate the value, use the registry editor called regedit to navigate through the registry tree to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NIs\CodePage, which represents the platform’s ODBC code page. On the right panel, scroll to the ACP value.

For Linux and UNIX, the server-platform-configured code page value can be found by using the locale command to determine the operating system, the platform, and ODBC code page value.

Upon connection to the target, the ODBC driver queries the target database for its code page and compares the value to the server-platform-configured code page:

If the values are not equal, the ODBC driver translates from the server-platform code page to the target code page.

If the values are equal, the ODBC driver does not perform any translation. As an Open Server API, the ECDA Option for ODBC relies on Open Server for datatype conversion.


It seems that this code page conversion is not working well for your application. IBM may be able to provide some assistance in configuring the ODBC driver and DataDirect may be able to update the driver to meet your application's needs.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri Jun 14, 2013 4:49 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

To be clear, the problem you are experiencing is that you are causing data conversion to happen more than once.

As lancelotlinc says, the ODBC driver will perform data conversion for you.

Stop trying to convince it that it's not supposed to, by randomly setting CCSID in various places or telling other things to perform data conversion.

Step back, let Broker convert incoming messages into the internal code page used for logical message trees. Let Broker present that data as is to the ODBC drivers, and let the ODBC driver do any needed conversion.

Once you have really honestly cleared the slate like that, and you are still having problems with diacriticals, then you can do fun things like enable ODBC tracing and open a PMR.
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 » WebSphere Message Broker (ACE) Support » SYBASE database with windows-1250 charset
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.