Dirk Hagemann wrote:
>
> What I want to do in the end is the following: I get some data from
> Active Directory, then I create a SQL-statement including this data and
> write this into the database.
Which API and protocol are you using to access Active Directory?
If you access it via LDAP (e.g.
Ok - this really works well for german special characters, but what to
do with all the other encodings.
What I could do is to try to vonvert it to latin-1 and if it fails I
try latin-2 and so on. But is this really necessary? Isn't there may me
a module which can do this for me and returns a string
Hi Fredrik!
I think this will help me. I just have to do the same for danish
encoding and may be some further encondings...
Thanks!
Dirk
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
When I receive data from Microsoft Active Directory it is an
"ad_object" and has the type unicode. When I try to convert it to a
string I get this error:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in
position 26: ordinal not in range(128)
This is caused by characters lik
Dirk Hagemann wrote:
> When I receive data from Microsoft Active Directory it is an
>"ad_object" and has the type unicode. When I try to convert it to a
> string I get this error:
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in
> position 26: ordinal not in range(128)
>
> Thi