This is API used to search Active Directory.
ldap_search_sA() function which uses PCHAR as parameter as its input fails when we pass an UTF-8 string containing European characters as filter.
question1) Why does this happen? Is it a issue/bug?
When I convert above filter to widechar_t & pass it to ldap_search_sW() it works.
question 2) If I use ldap_search_s() from OPENLDAP it works for double byte character although filter is passed as char*. Is this feature not supported by Microsoft?
Example - if I pass user char* user = "gσr", strlen(user) is 4 since σ is taking up 2 bytes
This works with OPENLDAP API which accepts char*
We'd suggest posting your question on MSDN Visual C# forum for help:
Have a nice day
EPX Service Engineering Support Team