Edy1988
asked on
How to configure Charset using CT library interface
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
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