Answer the question
In order to leave comments, you need to log in
Cyrillic character encoding in AD?
Good afternoon.
When requesting LDAP (MS AD) from the ldap module, a response is returned, where all Cyrillic characters are presented in an encoding unknown to me.
For example:
CN=\xd0\x9f\xd0\xb5\xd1\x82\xd1\x80 \xd0\x9f. \xd0\x9f\xd0\xb5\xd1\x82\xd1\x80\xd0\xbe\xd0\xb2,OU=some,DC=local,DC=lan
Answer the question
In order to leave comments, you need to log in
This is unicode. If you have a python at hand, you can write in the console: print '\xd0\x9f\xd0\xb5\xd1\x82\xd1\x80 \xd0\x9f. \xd0\x9f\xd0\xb5\xd1\x82\xd1\x80\xd0\xbe\xd0\xb2' and find out that it is "Peter P. Petrov". I guess you need to specify the encoding before querying AD.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question