Should be able to open the file in binary mode (as RunScript above it does) and append the \n as bytes.
Roger "bob gailer" <bgai...@gmail.com> wrote in message news:53373d8f.8050...@gmail.com... > My program loads into an edit window and runs fine. > > Top line : # -*- coding: utf-8 -*- > > However when I invoke check (shift-ctl-c) I get: > Traceback (most recent call last): > File "C:\Python33\Lib\site-packages\pythonwin\pywin\framework\intpyapp.py", > line 335, in OnFileCheck > scriptutils.CheckFile() > File > "C:\Python33\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", > line 467, in CheckFile > code = f.read() + "\n" > File "C:\Python33\lib\encodings\cp1252.py", line 23, in decode > return codecs.charmap_decode(input,self.errors,decoding_table)[0] > UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 19689: > character maps to <undefined> > > How do we fix this? _______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32