About wmi

Tim Golden mail at timgolden.me.uk
Wed Jul 16 12:16:50 EDT 2008


Assuming that the error comes back in the sys.stdout encoding, the following version *should* work ok. I still haven't got a non-English set up to test it on, but it certainly does return a Unicode error message.

http://timgolden.me.uk/wmi-project/wmi.py

The usual test case, if you wouldn't mind:

<code>
import wmi

wmi.WMI ("non-existent computer")

</code>

should give a (language-specific) error message, not an UnicodeDecodeError

TJG



More information about the Python-list mailing list