python-ldap, modlist and base64

2009-08-14 Thread Matias Surdi
Hi!

I'm wondering if there is any example or documentation on how to add
or modify ldap objects whose values contains non-ascii characters,
such as accents, and so on. As far as I understand, those values
should be encoded using base64, but if I do that, I don't know how to
indicate in the modlist that this is the encoded value and not the
value itself.

Any help will be bery appreciated.



-- 
Matias Emanuel Surdi.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: python-ldap, modlist and base64

2009-08-14 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Aug 14, 2009, at 13:24 , Matias Surdi wrote:

 Hi!

 I'm wondering if there is any example or documentation on how to add
 or modify ldap objects whose values contains non-ascii characters,
 such as accents, and so on. As far as I understand, those values
 should be encoded using base64, but if I do that, I don't know how to
 indicate in the modlist that this is the encoded value and not the
 value itself.

You do not have to base64-encode the values. Make sure they are UTF-8,  
and it should work just fine.

jens



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkqFUSAACgkQRAx5nvEhZLLOFgCfULPkkbO0hT/jV4m2DRZKBhX5
ACYAnRYhS3JBcK9V7WZAy4zoORNemO1T
=s+nu
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev