I had the same problem before and have seen a few posts about
this since. May be it's worth putting it in the FAQ.
Mostly copied from Chris Ridd's posts:
Index: lib/Net/LDAP/FAQ.pod
===================================================================
RCS file: /cvsroot/perl-ldap/ldap/lib/Net/LDAP/FAQ.pod,v
retrieving revision 1.30
diff -u -r1.30 FAQ.pod
--- lib/Net/LDAP/FAQ.pod 22 May 2003 12:32:13 -0000 1.30
+++ lib/Net/LDAP/FAQ.pod 16 Jun 2003 10:46:21 -0000
@@ -691,6 +691,18 @@
sub Search the whole tree below the base object.
This is the default.
+=head2 Receiving 'value #0 invalid per syntax' error while using
+accents / international character sets, why?
+
+LDAPv3 servers support UTF-8 encoding. The Net::LDAP modules do not do
+anything smart with the strings you pass in as attribute values - they
+get sent to the LDAP server as-is. You need to encode your values into
+UTF-8 yourself. You can have a look in CPAN for UTF8 modules for
+converting different encodings into UTF8.
+
+LDAPv2 servers support T.61 encoding. However LDAPv2 is considered
+historic and it is advised using LDAPv3 instead.
+
=head1 GETTING SEARCH RESULTS
There are two ways of retrieving the results of a requested
On 2003-06-16 11:04:42 +0000, Graham Barr wrote:
> ----- Forwarded message from Christophe Gevrey <[EMAIL PROTECTED]> -----
>
> Date: Mon, 16 Jun 2003 11:53:28 +0200
> To: [EMAIL PROTECTED]
> From: "Christophe Gevrey" <[EMAIL PROTECTED]>
> Subject: Perl LDAP / Accents
>
> Hi Graham,
>
> Sorry to bother you.
>
> Do you know any problem while using accents in cn with LDAP Perl
> Module?
>
> While trying to create a new entry with cn=Tobias L??mann
>
> I receive this error:
> cn: value #0 invalid per syntax
>
> thanks and best regards
>
> Christophe Gevrey
>
>
> ----- End forwarded message -----