From: James Chang <James.C<hang@ms...> - 2000-11-22 09:01:09
Thanks guys, I've managed to get Utf8 characters into and out of attributes
using the Net::LDAP module as well as perform searches on it.
I've done it the hard way comparing the unicode characters equivalent (via
Unicode::String) going in and coming out of the LDAP server (open LDAP
I was primarily concerned with the base 64 encoding aspect of any character
not within the ASCII character set but from the tests I've run so far it
Message Central plc. Suite K307 Tower Bridge Business Complex 100 Clements
Road London SE16 4DG
Web: http://www.msgc.com Email: info@... Tel: +44 20 7394 9511 Fax: +44 20
If you receive this email by mistake, please destroy your copy, having
returned this copy to the sender. This email and any attachments to it may
have been tampered with. Message Central plc cannot warrant the accuracy,
completeness or freedom from viruses of this email or any attachments. You
are strongly advised to check this email for viruses before downloading or
opening any attachments. Opinions expressed in this email are those of the
author and not of Message Central plc.
From: Graham Barr [mailto:gbarr@...]
Sent: Wednesday, November 22, 2000 06:33
To: Chris Ridd
Cc: James Chang; 'perl-ldap-dev@...'
Subject: Re: Greek characters - Utf8 encoding.
On Tue, Nov 21, 2000 at 01:33:46PM +0000, Chris Ridd wrote:
> So since Net::LDAP is character-set agnostic, it handles UTF-8 values OK.
> What you do with the bytes of the value once you get them from Net::LDAP
> up to you. Presumably there are ways in perl 5.6 to convert a string full
> of bytes which happen to be a UTF-8 representation of a string into a
> string which is interpreted by perl as UTF-8. I seem to recall that perl
> 5.6 has ways to do these conversions.
In 5.6 (if Net::LDAP will work with 5.6) the strings should be returned as
From: Chris Ridd <chris.ridd@me...> - 2000-11-22 11:05:14
James Chang <James.Chang@...> wrote:
> Thanks guys, I've managed to get Utf8 characters into and out of
> attributes using the Net::LDAP module as well as perform searches on it.
> I've done it the hard way comparing the unicode characters equivalent (via
> Unicode::String) going in and coming out of the LDAP server (open LDAP
> I was primarily concerned with the base 64 encoding aspect of any
> character not within the ASCII character set but from the tests I've run
> so far it looks good.
You don't need to base 64 encode/decode any values when using Net::LDAP, as
LDAP is a binary protocol and can therefore handle arbitrary binary values.
Get latest updates about Open Source Projects, Conferences and News.