The program below triggers a UnicodeEncodeError on my Windows 10 machine (running Python 3.5.2) but no error at all on my Linux machine (running Python 3.3.2).
#!/usr/bin/python
import logging
str ="Antonín Dvořák"
logging.basicConfig(filename='log.txt', level=logging.INFO)
logging.info(str)
On Linux, the log file correctly contains:
INFO:root:Antonín Dvořák
On Windows, I get the following error:
Any ideas on what the possible cause could be for this discrepancy?
