Thank you. I'll use that.
it works sometimes, sometimes it fails (with assertion fail error), Once it fails, it doesn't work again, but it will work again if I go through the Edit Snippet process and click Forward, changing nothing.
Here it is. I've only added the snippet at the end. There is no crash, the cursor moves up a line or two (can't recall exactly now) and no text is inserted.
snippet invokation failes with assertion failure
Core dumped editing python under Split View
Python allows specifying the source file encoding at either the first or second line, see https://www.python.org/dev/peps/pep-0263/ . A regular expression is provided there for allowed directive formats. Default is ASCII for Python2 and UTF8 for Python3. I would suggest a printed warning for this type of situations, which override preferences and locale. Finally, the "Document/Character Encoding" options seem to do nothing in this case, but I didn't research much. Cheers and let me know if I can...
Bluefish selecting wrong, non-UTF8 encoding based on source