LDAP and character encoding

From: Date: Fri, 15 Dec 2006 07:17:17 +0000
Subject: LDAP and character encoding
Groups: php.general 
Request: Send a blank email to php-general+get-245851@lists.php.net to get a copy of this message
Hej! I'm running PHP 5.1.2 on Suse 10. The LDAP server is openldap 2.3.19 I've problem with swedish characters and DN. DN: cn=åäö,dc=example,dc=com $res = ldap_search($ds, 'dc=example,dc=com', '(objectClass=*)'); $dn = ldap_get_dn($ds,$res); ==> $dn is cn=\C3\85\C3\84\C3\96,dc=example,dc=com How do I convert $dn to a readable format? I've tried utf8_decode, but it doesnt work. utf8_decode works on the entries returnd by ldap_get_attributes. /Andreas ---------------------------------------------------------------- This message was sent using IMP (http://www.horde.org). Running on PHP 5.1.2, Apache 2.0.55, Ubuntu Dapper.

« previous php.general (#245851) next »