z-eos / umi

Unified Management Interface
0 stars 1 forks source link

utf8::decode(attribute_value) by syntax Directory String #21

Open z-eos opened 8 years ago

z-eos commented 8 years ago

to do utf8::decode() for each attribute value according it's syntax type https://tools.ietf.org/html/rfc2252#section-6.10

like this

$tmp = $entry->get_value( $attr, asref => 1 );
map { utf8::decode($_); $_} @{$tmp};
$init_obj->{$attr} = $#{$tmp} > 0 ? $tmp : $tmp->[0];