LDAP search results encoded as UTF-8
|Reported by:||nobody||Owned by:||justinrandell|
Non-ACSII chars to not show up correctly in the LDAP search results. Our OpenLDAP server seems to send results encoded as UTF-8. RoundCube just outputs this into the ISO-8859-1 HTML page, which obviously cannot work. IÂ´ve been able to solve the problem by replacing this line $contacts[$n]['name'] = $result[$n][$server['name_field']]; with this $contacts[$n]['name'] = utf8_decode($result[$n][$server['name_field']]); I donÂ´t know whether all LDAP servers return search results as UTF-8, so maybe this should be made configurable or somehow auto-detected.
Change History (2)
Note: See TracTickets for help on using tickets.