[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: byte[] v String and related comments (WG last call on the JavaAPI)
The 9.1 example code seems to use getStringValues() without
a care in world to whether or not the values are compatible
with this method. I think a statement of the limited
applicability of this and other String-typed value access
methods should made, something like:
Applications should not use methods returning values
in String form unless those values are known restricted
to UTF-8. Applications should not assume an attribute,
regardless of its syntax, is returned in string form
as the server is free to return any attribute using
;binary transfer.
BTW, what's the behavior of getStringValues() if the character
is not UTF-8?