Get the name of the server character set.
char *dbservcharset(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 the server.
A pointer to the null-terminated name of the server’s character set, or NULL in case of error.
dbservcharset returns the name of the server’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 DBSETLCHARSET.
To determine if the server is performing character set translations, an application can call dbcharsetconv.
To get the name of the client character set, an application can call dbgetcharset.