On 17/2/06 8:54, Dagnicourt <[EMAIL PROTECTED]> wrote: > 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 ?
The released version of Net::LDAP doesn't try to treat returned values as UTF-8 or anything. There's a change in subversion which allows this to be configured in each search operation, so you could try that. However even using the current version you should still be able to convert the bytes in the returned value into a real UTF-8 string. Cheers, Chris