[python-win32] Unicode error on the event log

Jorgensen, Jens jens.jorgensen@tallan.com
Fri, 21 Dec 2001 09:40:19 -0600


Well, there are just some unicode chars that can't map into ascii! 
Perhaps you should convert to UTF-8 instead? Or maybe you don't event 
need to convert to ASCII?

Ivan Hernandez Puga wrote:

>Hello again. I have this problem while reading an event. Everything else works OK but this message makes the script halt. Is there some workaround?
>Thanks in advance
>
>Ivan Hernandez
>
>Traceback (most recent call last):
>  File "evt.py", line 87, in ?
>    msg = str(win32evtlogutil.SafeFormatMessage(ev_obj, logtype))
>UnicodeError: ASCII encoding error: ordinal not in range(128)
>
>
>_______________________________________________
>Python-win32 mailing list
>Python-win32@python.org
>http://mail.python.org/mailman/listinfo/python-win32
>


-- 
Jens B. Jorgensen
jens.jorgensen@tallan.com