[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
LDAP api and utf-8
This isn't exactly the right place to ask this but it will be when
OpenLDAP 2.0 is out since it supports v3. I'm writing a simple client
which uses the API defined in the Netscape Directory SDK 3.0 for C
Programmer's Guide, which I assume will become an RFC and the API for
OpenLDAP 2.0. I'm having a hard time understanding how non-ASCII
characters are supposed to be handled.
Is it the case that the API already handles the UTF-8 to local character
set conversion, or does the API user have to explicitly decode the UTF-8?
For example, if I use
ldap_search_ext
ldap_result
ldap_first_entry
ldap_first_attribute
ldap_get_values
to get the cn for an entry, do I have to worry about decoding the value
or has that already been done for me automatically? Thanks.
--
Steve Hubert <hubert@cac.washington.edu>
Networks and Distributed Computing, Univ. of Washington, Seattle