I have developed a program that, for your use, automatically creates another program on the user's Desktop. In order for the second to run in CMD or IDLE directly, it is necessary to convert the cp1252 encoding to utf-8. For this I followed a StackOverflow hint of adding # coding=utf8
at the beginning of the program, which worked perfectly.
Since this did not happen until you add # coding=utf8
, the cause should be the same. What can I do to fix this lock?
The code is available at link