Dear Tobias

Be aware that all information in the Ldap server is stored in UTF-8 format.
With this in mind you have to convert your national characters into UTF-8
before storing in the Ldap directory.

Netscape has a routine to do the conversions. Look in the netscape server
directory for NativeToAscii.

I don't know if a perl routine is available.


regards

Peter S�rensen
University of Southern Denmark
email: [EMAIL PROTECTED]

"Tobias" <[EMAIL PROTECTED]> wrote in message
9c9j5f$[EMAIL PROTECTED]">news:9c9j5f$[EMAIL PROTECTED]...
   > Hello all-
>
> when I try to create up update objects with strings that include special
> national character like � or � (dunno how it will look on your screen
now),
> I receive errors like constrainment violation etc.
>
> I am running perl scripts from an RedHat against an Novell eDirectory 85
> directory.
>
> I would really appreciate any help to solve this.
>
> Tobias
>
> here is some example code
> $conn2 = new Mozilla::LDAP::Conn($ld);
>
> my $entry = $conn2->search($$ld{base}, $$ld{scope}, "cn=$racf");
>
> $conn2->printError() if $conn2->getErrorCode();
>
> print $location;
>
> $entry->setValue("description", "description�");   <---- �: here is the
> national character!
>
> $conn2->printError() if $conn2->getErrorCode();
>
> $conn2->update($entry);
>
> $conn2->printError() if $conn2->getErrorCode();
>
> $conn2->close if $conn2;
>
>
>



Reply via email to