Yes, it's the same version Python 3.7.6
I force the function
getpreferredencoding()to return '
cp1252' and I wrote this simple code :
=====================================================
import locale
print(locale.getpreferredencoding())
f = open('truc.txt', 'r')
print(f)
f.close()
===================================================
I have :
cp1252
<_io.TextIOWrapper name='truc.txt' mode='r' encoding='UTF-8'>
Vincent