3

I used the command scrapy startproject tutorial in cmd, and it creates some files, but these files can not be opened by IDLE. It hints that:

The file's encoding is invalid for Python 3.x.
IDLE will convert it to UTF-8.
What's the current encoding of the file?

Here's a screenshot:

screenshot

What's the reason and how to solve it?

martineau
  • 119,623
  • 25
  • 170
  • 301

1 Answers1

0

If you are sure that you have not manually edited the contents of the ofending files before opening them with IDLE, the reason is probably a bug.

In that case, please open a bug report about it, preferrably detailing all the steps to follow to reproduce the issue, starting with the installation of Scrapy and ending with the issue you show on the screenshot.

In the meantime, you should be able to convert those files automatically from their current encoding to UTF-8 with any good plain text editor (e.g. Notepad++) or a specialized tool.

Gallaecio
  • 3,620
  • 2
  • 25
  • 64