[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap_explode_dn corrupts UTF-8 encoding (ITS#1890)
ps@psncc.at writes:
> OpenLDAP 2.1.2 seems to currupt non-ASCII UTF-8 encoded characters.
> It actually turns unprintable chars (in the ASCII sense) into \<hexcode>.
I think this is a leftover of when we decided to use UTF8 instead
of the '\' + HEXPAIR representation of non-ascii chars, and initially
it was intended; of course, when parsing a DN, one wants the correct
UTF8 encoding.
It's only a matter of passing a LDAP_DN_PRETTY flag to the conversion
routines.
Pierangelo.
Dr. Pierangelo Masarati | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale | fax: +39 02 2399 8334
Politecnico di Milano | mailto:pierangelo.masarati@polimi.it
via La Masa 34, 20156 Milano, Italy | http://www.aero.polimi.it/~masarati