Strictly speaking, this bug is invalid. Inserting '# -*- coding: utf-8 -*-' causes the script to execute correctly.
However, the idea of inserting such a line automatically for all scripts is worthwhile, so I've "promoted" this item to a wish list.
The fix isn't entirely trivial: Leo should scan all the opening lines of a script before inserting the coding line.
Strictly speaking, this bug is invalid. Inserting '# -*- coding: utf-8 -*-' causes the script to execute correctly.
However, the idea of inserting such a line automatically for all scripts is worthwhile, so I've "promoted" this item to a wish list.
The fix isn't entirely trivial: Leo should scan all the opening lines of a script before inserting the coding line.