Re: [python-win32] unicode breaks win32com?

2012-10-03 Thread Preston Landers
This is probably not the "correct" answer, but you can see if it helps. At the top of your script try adding this: import sys sys.setdefaultencoding("utf-8") On Wed, Oct 3, 2012 at 4:50 PM, Matt LaPlante wrote: > I'm using win32com to query AD for the adsPath as below. It's come to my > atten

[python-win32] unicode breaks win32com?

2012-10-03 Thread Matt LaPlante
I'm using win32com to query AD for the adsPath as below. It's come to my attention that a user with unicode is apparently breaking this. user = 'mrunicode' dnc = win32com.adsi.ADsGetObject('LDAP://rootDSE').Get('DefaultNamingContext') ado = win32com.client.Dispatch('ADODB.Connection') ado.Open('P

Re: [python-win32] Getting Error "Pure Virtual Function Call R6025" Error

2012-10-03 Thread Paul_Koning
I don't know how Windows C++ works, but with GCC this error almost always indicates you're using an object after it has been freed. The reason is that freeing the object calls the destructors in inheritance order, and changes the virtual method pointer table as it does so. The end result is a