[Date Prev][Date Next]
Re: String conversions UTF8 <-> ISO-8859-1
Kurt D. Zeilenga writes:
>At 04:52 AM 5/15/2003, Hallvard B Furuseth wrote:
>>At 30 Apr I wrote:
>>> However, how about keeping charset handling in a separate library,
>>> but provide it as callbacks from the LDAP library? (...)
> Personally, I rather not add callbacks here. It is likely
> more efficiently and effectively to do such transcoding directly
> upon returned values by the application then via callbacks.
Plenty of experience with both LDAP and X.500 shows that if the
library doesn't offer charset conversion, very often it doesn't
get done. There are just too many places to do it to bother,
assuming the issue occurs to the (usually American) author at all.
See OpenLDAP/clients/tools, for example.
So I'd really like OpenLDAP to provide charset conversion. From
message <HBF.email@example.com>, the options then seem to
be callbacks or to provide another charset-aware library which
completely duplicates the LDAP API, but which does charset conversion.
That seems very cumbersome, so I prefer callbacks.