mail at timgolden.me.uk
Wed Jul 16 18:16:50 CEST 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.
The usual test case, if you wouldn't mind:
wmi.WMI ("non-existent computer")
should give a (language-specific) error message, not an UnicodeDecodeError
More information about the Python-list