Solved

How to configure Charset using CT library interface

Posted on 2006-11-07
3
376 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
finding which fields are "nullable" 4 688
Oracle Global Constant Without A Package 2 675
SQL Query 2 318
MS SQL Linked server 3 117
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
We have come a long way with backup and data protection — from backing up to floppies, external drives, CDs, Blu-ray, flash drives, SSD drives, and now to the cloud.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now