From: HP D. <hp....@we...> - 2002-10-17 16:18:53
|
On Thu, 17 Oct 2002 12:56:07 +0100 Graham Barr <gb...@po...> wrote: > On Sat, Oct 12, 2002 at 05:32:00PM +0200, HP Doerr wrote: > > hi all > > > > i've got some problems here with perl-ldap and utf8 strings. if i'm calling update on an Net::LDAP::Entry object with some attributes as utf8 strings, the servers complains about an invalid syntax. > > > > but a > > $ldap->modify($entry, changes => [ replace => [ attribute => $string ] ] ); > > (where $string is the utf8 encoded string) > > works as expected. > > What exactly do you mean by "attributes as utf8 strings" ? hi i used the Unicode::MapUTF8 to convert some strings to utf8, and used this utf8 strings as values for some LDAP attributes. as far as i can see, the schema allows utf8 in those attributes. > What version of perl are you using ? Are you using 5.8 and passing a scalar > that you know perl has encoded as utf8 ? im using a debian 3.0 standard setup with perl 5.6.1. the above named module is also from a standard debian package. > I can imagine that may cause an issue, but I am not sure. i really hope you dont only know about the issue, but about the solution ;-) thanks, hp |