Just starting to use PowerShell on Windows 10 with the latest Anaconda3 and Python3.7 and cannot run the script due to encoding error. The script attempts to write a text file which contains some German characters and throws:
UnicodeEncodeError: 'charmap' codec can't encode character '\u0144' in position 10: character maps to <undefined>
I have tried chcp 65001
and setting set PYTHONIOENCODING=utf-8
but this does not help.
How does it work with PowerShell?