> I am using mintty with option Text.locale=fr_FR and Character set=UTF-8
> Why, then, python3 reports a different encoding (ANSI_X3.4-1968) for
> stdout and stdin?
I found the issue:
I had LANG=fr_FR.UTF-8 and at the same time LC_ALL=C
I removed LC_ALL=C and my python3 script works with UTF-8 i/o
I am using mintty with option Text.locale=fr_FR and Character set=UTF-8
Why, then, python3 reports a different encoding (ANSI_X3.4-1968) for
stdout and stdin?
$ cat toto.py
import sys
print(sys.stdin.encoding)
print(sys.stdout.encoding)
$ python3 toto.py
ANSI_X3.4-1968
ANSI_X3.4-1968
Thanks,
Fr
2 matches
Mail list logo