Data need to be converted from UTF-8 to the local character
set.
I fixed this by wrapping all reads from $query_result... with
ldap_decode()
function ldap_decode($string) {
return
mb_convert_encoding($string,mb_internal_encoding(),'UTF-8');
}
LDAPv3 allways does UTF-8, so this only works when LDAPv3
is in use. I fixed fixed that too, but but v3 needs to be an option
separate from TLS) so ldap_decoce should probably be applied
only if LDAPv3 is used AND the internal encoding is not UTF-8.
Logged In: NO
I collected this and other fixes here:
http://rosenberg.homelinux.net/wordpress/?p=43