#include <ldap.h> int ldap_set_iconv_local_charset (char * charset)
|
The ldap_set_iconv_local_charset() API checks if the character set is supported. If supported calls ldap_set_iconv_local_codepage.htm() 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
| Character Set Name |
Locale | Codepage |
|---|---|---|
| ISO-8859-1 | EN_US | 819 |
| ISO-8859-2 | HU_HU | 912 |
| ISO-8859-5 | RU_RU | 915 |
| ISO-8859-6 | AR_AA | 1089 |
| ISO-8859-7 | EL_GR | 813 |
| ISO-8859-8 | IW_IL | 916 |
| ISO-8859-9 | TR_TR | 920 |
| IBM437 | n/a | 437 |
| IBM850 | EN_US | 850 |
| IBM852 | n/a | 852 |
| IBM857 | n/a | 857 |
| IBM862 | n/a | 862 |
| IBM864 | n/a | 864 |
| IBM866 | n/a | 866 |
| IBM869 | n/a | 869 |
| TIS-620 | TH_TH | 874 |
| EUC-JP | JA_JP | 954 |
| EUC-KR | KO_KR | 970 |
| EUC-CN | ZN_CN | 1383 |
| EUC-TW | ZH_TW | 964 |
| Shift-JIS | JA_JP | 932 |
| GBK | ZH_CN | 1386 |
| Big5 | ZH_TW | 950 |
No OS/400 authority is required. All authority checking is done by the LDAP server.
If ldap_set_iconv_local_charset() will return LDAP error code if not successful. See ldap_error_condt() for possible values for LDAP error codes.
The following message may be set from this function.
CPF3CF2 E Error(s) occurred during running of ldap_set_iconv_local_charset API.
ldap_xlate_local_to_utf8() -- Convert String From the Local to UTF-8 Code Page.
ldap_xlate_utf8_to_local() -- Convert String From UTF-8 to Local Code Page.
ldap_xlate_local_to_unicode() -- Convert String From the Local to UCS-2 Code Page.
ldap_xlate_unicode_to_local() -- Convert String From UCS-2 to Local Code Page.
ldap_get_iconv_local_codepage() -- Get the Active LDAP Code Page.
ldap_set_iconv_local_codepage() -- Set the Active LDAP Code Page.
ldap_set_locale() -- Change the Locale Used by LDAP.
ldap_get_locale() -- Get the Locale Used by LDAP.
|
Top
| LDAP APIs List APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |