Solved

How to configure Charset using CT library interface

Posted on 2006-11-07
3
384 Views
Last Modified: 2008-02-01
Hi,

We have two different applications that interact with Sybase, one is using the DB library and the other one is using the CT library.

In the DB library when you define the connection there is  function DBSETLCHARSET that allows you to define the CHARSET to be used in the session, we are looking for the equivalent call in the CT Library.

Any ideas?
0
Comment
Question by:Edy1988
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Jan_Franek earned 100 total points
ID: 17890965
You are probably looking for cs_locale function (usually used with cs_loc_alloc and cs_loc_drop functions and CS_LOCALE structure).

For more info see Client-Library™/C Programmer’s Guide
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ocs_12.5.1.clcprgde/html/clcprgde/title.htm&toc=/com.sybase.help.ocs_12.5.1/toc.xml
0
 

Author Comment

by:Edy1988
ID: 17929863
Hi,

Sorry for the late response, are you sure the CS_LOCALE is the charset defined when you create new Sybase server? (I'm just asking)?

Thanks
Eyal
0
 
LVL 14

Expert Comment

by:Jan_Franek
ID: 17929889
Did I say that CS_LOCALE is charset ? I don't think so.

Did you look at that Programmer's Guide ?

A CS_LOCALE, or locale structure, can be used to specify localization information at the context, connection, command structure, or data element levels.
A CS_LOCALE structure specifies:
    *      A language, character set, and collating sequence
    *      How to represent dates, times, numeric, and monetary values in character format
An application can call the CS-Library routines cs_loc_alloc, cs_locale, and cs_loc_drop to allocate, set values for, and drop a CS_LOCALE structure.

For more information, see the “International Support” topics page in the Open Client Client-Library/C Reference Manual.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to query constraints in Sybase 3 1,814
Visual Studio 2010 with SyBase 3 852
Installing Sybase IQ 16.x x64 on Windows 8.1 update1 5 1,605
Why did SAP buy Sybase? 3 174
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question