From: Chris R. <chr...@me...> - 2001-03-23 11:43:28
|
Behruz Rushenas <beh...@cp...> wrote: > Hi Graham, > > First of all thanks for the great job on LDAP. > I have a question concerning an ldap attribute which contains special > caraters such as "#". > When I call the function entry->get( attribute_name), the value is > returned with some special caracter instead of #. > How can i fix that. > > Thanks. > Behruz. > > > Net::LDAP doesn't do any particular mangling of the results from the directory. They're just stored in scalars, which can hold arbitrary octets including NUL bytes etc. Perhaps your server is returning mangled results, or alternatively perhaps Perl is doing something odd perhaps in the area of Unicode handling. What version of LDAP are you specifying in the bind? Remember the default is v2. You can peek at the bytes the server's returning by creating the Net::LDAP object with debug set to 4 (see the documentation for Net::LDAP->new). Cheers, Chris |