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:[EMAIL PROTECTED]
internet: http://www.suchtreffer.de
___
-Original Message-
From: Christian Chateauvieux [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 5:59 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
[EMAIL PROTECTED]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]