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?
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. regards Dirk -- http://mail.python.org/mailman/listinfo/python-list