ldap_set_iconv_local_charset()-- Set the Active LDAP Character Set



  Syntax
 #include <ldap.h>
 
 int
 ldap_set_iconv_local_charset ( char *charset )

  Default Public Authority: *USE

  Library Name/Service Program: QSYS/QGLDCLNT

  Threadsafe: Yes

The ldap_set_iconv_local_charset() API checks if the character set is supported. If supported, the API calls ldap_set_iconv_local_codepage() to set the global variable ldap_global_codepage to a corresponding codepage value.

A limited set of the IANA character sets will be supported. Character sets supported include:



Authorities and Locks

No IBM® i authority is required.


Parameters

charset
(input) specifies character set value.

Return Value

LDAP_SUCCESS
if the request was successful.

Other LDAP error code
if the request was not successful.

Error Conditions

The ldap_set_iconv_local_charset() API returns an LDAP error code if not successful. See LDAP Client API Error Conditions for possible values for LDAP error codes.


Error Messages

The following message may be sent from this function.



Related Information



API introduced: V4R5

[ Back to top | LDAP APIs | APIs by category ]