Hey folks,

I'm kinda new to Perl-LDAP and I'm having some problems to add attributes
with non-ascii values into Active Directory.

For example, setting and user geographic location attribut to:

l => 'Vit�ria',

when I connect to the directory (using AD Users and Computers), this attribute
for the example users shows "Vitria" (missing �). I have already tried to
encode as UTF-8 or ISO-8859-1, but it seems AD uses another encoding, so
the code bellow doesn't work either:

$locality = encode("iso-8859-1", "Vit�ria");

or

$locality = encode("utf8", "Vit�ria");

Any tips on solving this?

Thanks
Ricardo




------------------------------------------
Use o melhor sistema de busca da Internet
Radar UOL - http://www.radaruol.com.br



Reply via email to