RE: [PHP-DB] LDAP and special chars

From: Date: Thu, 09 Aug 2001 09:41:44 +0000
Subject: RE: [PHP-DB] LDAP and special chars
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11159@lists.php.net to get a copy of this message
Hi Christian, ... you could urlencode() when inserting and urldecode() on fetching the data. Perhaps this helps. Greetinx, Mike Michael Rudel - Web-Development, Systemadministration - Besuchen Sie uns am 20. und 21. August 2001 auf der online-marketing-düsseldorf in Halle 1 Stand E 16 _______________________________________________________________ Suchtreffer AG Bleicherstraße 20 D-78467 Konstanz Germany fon: +49-(0)7531-89207-17 fax: +49-(0)7531-89207-13 e-mail: mailto:mru@suchtreffer.de internet: http://www.suchtreffer.de _______________________________________________________________ > -----Original Message----- > From: Christian Chateauvieux [mailto:christian@metamerge.com] > Sent: Wednesday, August 08, 2001 5:59 PM > To: php-db@lists.php.net > Subject: [PHP-DB] LDAP and special chars > > > Hello, > > I am working with PHP 4.0.6 and OpenLDAP 2.0.11. > I encounter problems when modifying some entries with > attributes containing > special chars (such as å, ø...). The error returned by the > LDAP server is > "invalid syntax". > > I have read some documentation about this. OpenLDAP can accept > base64-encoded values, provided we use the tools that come with the > application (ldapadd, ldapmodify, etc.). > Then the attributes in the entry would be separated from > their values by a > double column instead of the single colums used normally. > > i.e, the entry would be > dn:uid=whatever,o=whatever > normalAttribute: normalvalue > specialAttribute:: SVN== (this one is B64 encoded) > > But how to do this from PHP functions? I tried to > base64_encode the values, > it naturally didn't do the trick (those values were > considered as normal, > and thus were not decoded). > > Any idea? > > Thanks in advance > > > Christian Chateauvieux > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.db (#11159) next »