[Date Prev][Date Next]
insert utf-8 data with c api
I have trouble inserting data in openldap when it contains utf8 characters. My code works as long as only ascii characters are present, but when a name has an accent or umlaut in it, the modify operation fails with an operations error.
Even reading a string with such a character from an existing entry and pushing the same string back to ldap with ldap_modify_ext_s gives me this error. And while debugging I can see that the string in question really contains the correct uft8 values.
Are there perhaps any options that have to be enabled? The only one I am using now is:
int version = LDAP_VERSION3;
ldap_set_option(_server, LDAP_OPT_PROTOCOL_VERSION, &version);
yvan vander sanden