Set the character set in the LOGINREC structure.
RETCODE DBSETLCHARSET(loginrec, char_set) LOGINREC *loginrec; DBCHAR *char_set;
A pointer to a LOGINREC structure to be passed as an argument to dbopen. LOGINREC structures are obtained using dblogin.
The name of the character set the client will use. char_set must be a null-terminated string. Default values for char_set include “iso_1” for ISO-8859-1 (most platforms), “cp850” for Code Page 850 (IBM RS/6000), and “roman8” for the Roman8 character set (HP platforms).
To indicate that no character set conversion is desired, pass char_set as NULL.
SUCCEED or FAIL.
DBSETLCHARSET sets the client character set in a LOGINREC structure.
DB-Library/C clients may use a different character set than the server or servers to which they are connected. DBSETLCHARSET is used to inform the server what character set a client is using.
Because the LOGINREC is passed as a parameter in the dbopen call that establishes the client’s connection with a server, DBSETLCHARSET must be called before dbopen to have any effect.
The server will perform all conversions to and from its own character set when communicating with a client using a different character set.
If no conversion is desired, call DBSETLCHARSET with char_set as NULL.