Why the first line of my program is # -*- coding: cp1252 -*-?

python, python-2.x

Solution

I'd assume that your IDE inserted it when saving the file. It's the file encoding for your source file.

Problem

I never write it, but now, when I open the script there is the first line: ``` # -*- coding: cp1252 -*-. ``` What's that? Why if I never wrote it there is something like that?

Original source