ldap_xlate_local_to_unicode()-- Convert String From the Local Code Page to
UCS-2 (or UNICODE) Encoding
Syntax
#include <ldap.h>
int ldap_xlate_local_to_unicode(
char *inbufp,
unsigned long *inlenp,
char *outbufp,
unsigned long *outlenp )
Default Public Authority: *USE
Library Name/Service Program: QSYS/QGLDCLNT
Threadsafe: Yes
The ldap_xlate_local_to_unicode() API is used to convert a
string from the local code page to the UCS-2 encoding as defined by ISO/IEC
10646-1. This same set of characters is also defined in the UNICODE
standard.
Authorities and Locks
No IBM® i authority is required.
Parameters
inbufp
(Input) A pointer to the address of the input buffer containing the data to
be translated.
inlenp
(Input) Length in bytes of the inbufp buffer. This value is
decremented when the conversion is done, such that on return it indicates the
length of inlenp buffer that is left to be translated.
outbufp
(Output) A pointer to the address of the output buffer for translated
data.
outlenp
(Output) Length in bytes of the outbufp buffer. This value is
decremented when the conversion is done, such that on return it indicates the
length of outlenp buffer space left available for translated data.
Note that in general, the output buffer should be three times as large as
the input buffer if the intent is to translate the entire input buffer in a
single call.
Return Value
LDAP_SUCCESS
if the request was successful.
another LDAP error code
if the request was not successful.
Error Conditions
The ldap_xlate_local_to_unicode() API will return an LDAP
error code other than LDAP_SUCCESS if not successful. See LDAP Client API Error Conditions for possible LDAP
error code values.
Error Messages
The following message may be sent from this function.
Message ID
Error Message Text
CPF3CF2 E
Error(s) occurred during running of
ldap_xlate_local_to_unicode API.