Message200002
The example works fine on Python3:
localhost$ python3
Python 3.3.2 (default, Aug 23 2013, 19:00:04)
[GCC 4.8.1 20130603 (Red Hat 4.8.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.root.addHandler(logging.FileHandler(filename='test.log',encoding='UTF16'))
>>> logging.error( u'b\u0142\u0105d')
>>>
localhost$ hexdump test.log
0000000 feff 0062 0142 0105 0064 000a
000000c |
|
Date |
User |
Action |
Args |
2013-10-15 15:11:02 | vstinner | set | recipients:
+ vstinner, vinay.sajip, pwronisz |
2013-10-15 15:11:02 | vstinner | set | messageid: <1381849862.23.0.438593808777.issue19267@psf.upfronthosting.co.za> |
2013-10-15 15:11:02 | vstinner | link | issue19267 messages |
2013-10-15 15:11:02 | vstinner | create | |
|