On Wed, Oct 08, 2003 at 06:40:19PM +0000, [EMAIL PROTECTED] wrote:
> Things get strange when the search retrieves names with special Characters
> in like ? ? ? (If they are not displayed correctly at your site: these are
> the vocals u, o and a with an colon on top of them; they are frequently
> used in German speaking countries). Not only the special character gets
> mixed up, the whole name does. For instance the name "Richard B?sing" (i.e.
> Richard Busing) is retrieved as ": UmljaGFyZCBCw7xzaW5n"
I can't fix that, but I can explain it.
It seems that sqwebmail doesn't link to an LDAP library, it just forks and
runs the external "ldapsearch" command. When ldapsearch returns a string
with non-ASCII characters in it, it returns the attribute with an extra
colon attached, and then the value base64 encoded. In your case it might be
something like:
cn:: UmljaGFyZCBCw7xzaW5n
Base64-decoding this gives the correct text:
$ ruby -e 'p "UmljaGFyZCBCw7xzaW5n".unpack("m")'
["Richard B\303\274sing"]
Clearly sqwebmail doesn't handle this case. (Since there are two bytes in
there I'm guessing the character set is UTF8?)
Regards,
Brian.