[Tickets #4692] Re: GetGroupName() when dn contains french accents

bugs@bugs.horde.org bugs at bugs.horde.org
Mon Jan 22 07:27:54 PST 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4692
-----------------------------------------------------------------------
 Ticket             | 4692
 Updated By         | patrick.abiven at apitech.fr
 Summary            | GetGroupName() when dn contains french accents
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Bug
 State              | Assigned
 Priority           | 1. Low
 Owners             | Ben Chavet
-----------------------------------------------------------------------


patrick.abiven at apitech.fr (2007-01-22 07:27) wrote:

Hello
When dn contains french accent, the $result[0] is not set and we get an
invalid index exception.
In getGroupName(), I use the following workaround:
- $result = ldap_explode_dn($dn, 1);
+ $result = ldap_explode_dn(String::convertCharset($dn, NLS::getCharset(),
'UTF-8'), 1);
Regards
Patrick


> Some of the notes from the manual might be useful here:
> http://us3.php.net/ldap-explode-dn
>
> Patrick, can you be more specific than "incorrect"? Are the hex codes 
> described in those manual notes the problem?





More information about the bugs mailing list