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

Mark Hammond mhammond at skippinet.com.au
Tue Jul 4 05:09:16 CEST 2006


> Any presence of a non-ascii character, even if it is in the
> comment only,
> would cause this problem. I have tried various encoding, with
> or without
> BOM, and also adding the encoding specification at the top of
> the file.
> All these give the same result. On the other hand a similar
> Javascript
> would run alright.
>
> Is this a win32 implementation issue?

Yes, this is a problem in pywin32.  I've fixed it locally (well, at least
extended chars in comments now works), so it will be available as soon as I
get a new pywin32 build out.

Cheers,

Mark



More information about the Python-win32 mailing list