5.16.3.7 String(Unicode)
To convert from the LDAP representation to the Unicode syntax representation, the UTF-8 encoded string is converted to a UCS-16 encoded String16. Each Unicode character is in little-endian format. The resulting string is not null-terminated. The valLength field of ATTRVAL equals the total number of bytes in the Unicode string.
Example:
-
LDAP value: Administrator (Unicode string encoded in UTF-8) valLen: 26 payload: 41 00 64 00 6d 00 69 00 6e 00 69 00 73 00 74 00 A.d.m.i.n.i.s.t. 72 00 61 00 74 00 6f 00 72 00 r.a.t.o.r.