[Zope] Dealing with non-ASCII strings?

Jens Vagelpohl jens@zope.com
Wed, 2 Oct 2002 07:40:14 -0400


> Yes. The bit we were missing in our app was this: our LDAP connection
> didn't want unicode_string (which looks like, say, u'string\xNN'), but
> it's fine with unicode_string.encode('utf-8') (which looks like, say,
> 'string\xc3\xNN').
>

at least as far as OpenLDAP is concerned, it expects all text sent to 
it to be either ASCII or UTF8-encoded unicode. anything else will give 
you trouble or wrong query results.

jens