When attempting to use the encoding="" parameter of logging.FileHandler I always get a UnicodeError. This looks like a bug to me (otherwise I am seriously misunderstanding what the parameter is supposed to do). The attached file contains the code to reproduce this error. Traceback (most recent call last): File "/usr/local/stow/Python-2.6.1/lib/python2.6/logging/__init__.py", line 765, in emit self.stream.write(fs % msg.encode("UTF-8")) File "/usr/local/stow/Python-2.6.1/lib/python2.6/codecs.py", line 686, in write return self.writer.write(data) UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position 0: ordinal not in range(128) For completeness: I am running a self-compiled Python 2.6.1 on the current Debian GNU/Linux testing release.