when I prefix my .py file using utf-8 or Latin-1 I always get bad charcacters in OUTPUT or in matplotlib figure text.
Post 'Working with UTF-8 encoding in Python source' does not answer my question which is specific to vs code.
In:
`# -*- coding: utf-8 -*-`
print('à')
Out:
�
matplotlib text with utf-8 encoding right display >

In:
`# -*- coding: Latin-1 -*-`
print('à')
Out:
à
matplotlib text with Latin-1 wrong display >

I tried different encodings but I never get proper outputs
'Périodes'.encode( 'utf-8').decode( 'latin1')returns'Périodes'. Switch to UTF-8 Everywhere…latin1and you havelatin-1in your code.