Hi,
thanks for the pull equest, but I will not merge it.
Encoding to/from UTF8 is not considered part of what
escale_dn_value()/unescape_dn_value() is supposed to do.
These functions expect resp. return a string in UTF8,
and only do the escaping/unescaping necessary for DN values.
Making sure the the strings are in the proper encoding is outside perl-ldap's realm, and should be done in the application using perl-ldap.
Doing blind encoding-conversion from to UTF8 hard-hoces
some expectations (like e.g. "encoding is latin1", ...)
into perl-ldap that break perl-ldap for many users.
E.g. I run Linux with a UTF8-based locale.
Doing Encode::encode("utf-8", $_) in my environment breaks escale_dn_value.