At 11:11 PM 8/11/2003, Dan Oscarsson wrote: >Kurt D. Zeilenga wrote: > >>At 04:27 AM 8/11/2003, Dan Oscarsson wrote: >>>All attributes in LDAPv3 uses UTF-8 encoding. >> >>I like to point out that this statement is not true. >>Encoding of attribute values depends on its syntax, >>sometimes dependent on transfer options. Some textual >>string are not UTF-8 encoded Unicode (in real world >>directories). > >You are right, I was thinking only of the attributes representing >text values. Not any binary values. Is there a text attribute that is not UTF-8 >encoded?
Yes. >If so, what character encoding does it use? I've seen UTF-16, UTF-32, T.61, and a few others... all over LDAPv3. >>Also, the API has generally no clue as to the syntax of >>values transferred... making transcoding at the API level >>quite problematic. > >Right, so you have to tell the API what to transcode. I don't think the LDAP API should do any trancoding, the API should be a simple conduit between the application and the wire. Any transcoding desires should be done by the application (by directly calling APIs specifically designed to do transcoding). Kurt
