Get the name of the client character set from the DBPROCESS structure.
char *dbgetcharset(dbproc) DBPROCESS *dbproc;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library/C uses to manage communications and data between the front end and server.
A pointer to the null-terminated name of the client character set, or NULL in case of error.
dbgetcharset returns the name of the client’s character set.
DB-Library/C clients can use a different character set than the server or servers to which they are connected. If a client and server are using different character sets, and the server supports character translation for the client’s character set, it will perform all conversions to and from its own character set when communicating with the client.
An application can inform the server what character set it is using through DBSETLCHARSET.
To determine if the server is performing character set translations, an application can call dbcharsetconv.
To get the name of the server character set, an application can call dbservcharset.
dbcharsetconv, dblogin, dbopen, dbservcharset, DBSETLCHARSET