mruel
asked on
LDAP?
Is anybody knows LDAP ? I have problems with accents in common names....
Mel
Mel
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...
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 ...
I'll check if I find an example, being back soon ...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
I'll try this and come back to tell you if it works.
I'll try this and come back to tell you if it works.
ASKER
I tried utf8($yourstring)->latin1; And it worked!
It make me save a lot of time, thanks a lot ahoffmann!
It make me save a lot of time, thanks a lot ahoffmann!
Which perl module for LDAP are you using? (Net::LDAPapi.pm or Netscape LDAPapi.pm).
What are the Problems?