Hello,

I read the previous topics but I still have the same "language" problem.

In the sn component for a person in the ldap server : Cécile
Here the line I get in $sn: Cécile

Here the code :

$mesg = $ldap->search(
        base   => "o=treves",
        filter => "objectclass=*"
);
foreach $entry ($mesg->entries)
{
foreach my $attr ( $entry->attributes )
{
        $sn = $entry->get_value( 'sn' );
        $gn = $entry->get_value( 'givenname');
        print($sn,":",$gn,"\n");
  }
}

I try some utf8 conversions but same thing.
I have perl  v5.8.0.
Any idea ?

Regards,

Sébastien


Reply via email to