[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Encoding responsibility
At 10:43 AM 5/10/00 -0400, Gary Williams wrote:
>DN's, and other data in Version 3 LDAP directories is
>supposed to be UTF-8 encoded ISO 10646 characters. Whose
>responsibility is it to convert and encode the characters?
>That is, if I'm writing an application, do I pass encoded
>data to the API, or should the API do the conversion?
Depends upon the API. In LDAP C APIs [per latest I-D],
applications are responsible for provided properly
encoded data. In Java APIs [per latest I-D], the
API converts to UTF-8. Of course, to do so, the
API must be aware of schema (as not all attribute
type values are represented as character strings).
Kurt