Den 2016-09-20 skrev Peter Otten <__pete...@web.de>: > Martin Schöön wrote: > >> Den 2016-09-19 skrev Christian Gollwitzer <aurio...@gmx.de>: >>> Am 19.09.16 um 22:21 schrieb Martin Schöön: >>>> I am studying some of these tutorials: >>>> https://pythonprogramming.net/matplotlib-intro-tutorial/ <snip> >>> >>> Assuming that you use UTF-8 (you should check with an emacs expert, I am >>> not an emacs user), try putting the header >>> >>> #!/usr/bin/python >>> # -*- coding: utf-8 -*- >>> >>> on top of your files. >>> >> I already have this and since it doesn't work from command line >> either it can't be an emacs unique problem. >> > > Are all non-ascii strings unicode? I. e. > > u"Schöön" rather than just "Schöön" > > ?
I am not sure I answer your questions since I am not quite sure I understand it but here goes: The complete file is UTF-8 encoded as that is how Geany is set up to create new files (I just checked). /Martin -- https://mail.python.org/mailman/listinfo/python-list