DBSETLCHARSET

Description

Set the character set in the LOGINREC structure.

Syntax

RETCODE DBSETLCHARSET(loginrec, char_set)
 
LOGINREC    *loginrec;
DBCHAR        *char_set;

Parameters

loginrec

A pointer to a LOGINREC structure to be passed as an argument to dbopen. LOGINREC structures are obtained using dblogin.

char_set

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.

Returns

SUCCEED or FAIL.

Usage

See also

dbgetcharset, dblogin, dbopen