Link to home
Start Free TrialLog in
Avatar of mruel
mruel

asked on

LDAP?

Is anybody knows LDAP ? I have problems with accents in common names....

Mel
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Which LDAP (protocol) version are you using?
Which perl module for LDAP are you using? (Net::LDAPapi.pm or Netscape LDAPapi.pm).
What are the Problems?
Avatar of mruel
mruel

ASKER

I'm using PerLDAP v1.4 and Mozilla::LDAP.

The problem is that names with accents (Like Melanie Ruel) have been saved in LDAP database and when I try to display them on a HTML page, I have something like "M??lanie Ruel", and when I make a ldapsearch on that name, it says that cn=NOT ASCII.

I found that string are UTF-8 encoded, but I don't know how can I decode the string to obtain Melanie instead of M??lanie...
I suggest using Net::LDAPapi, it supports UTF8.
I'll check if I find an example, being back soon ...
 
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mruel

ASKER

Thanks!
I'll try this and come back to tell you if it works.
Avatar of mruel

ASKER

I tried utf8($yourstring)->latin1; And it worked!
It make me save a lot of time, thanks a lot ahoffmann!