Re: [python-win32] Non-ascii character in source code cause 'Exception occurred'

2006-07-03 Thread aurora
P.S. The script can actually process unicode, passing unicode text to and from other COM objects. E.g. print u'\N{Euro Sign}'.encode('utf-8') The only problem is the source code cannot have any non-ascii characters. wy > I find that putting any non-ascii character in the Python source co

[python-win32] Non-ascii character in source code cause 'Exception occurred'

2006-07-03 Thread aurora
I find that putting any non-ascii character in the Python source code would cause an unspecific "Exception occurred" error. For example, _u.py # € print 'hello' g:\usr\bin\EmEditor Macros>cscript /e:python _u.py Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Cor