Opened 6 years ago

Closed 6 years ago

#5056 enhancement closed duplicate (duplicate)

twistd - specify log encoding

Reported by: berwin22 Owned by:
Priority: normal Milestone:
Component: core Keywords: codec log encoding ordinal
Cc: Branch:


I would say that this issue can be marked as fixed once the user can specify the log format encoding (utf-8, ansii, etc) when invoking twistd.

Personally, I'd like to see unicode support. Currently, the default encoding is ansii, even if the terminal supports utf-8, and when you try to print a unicode charactor: <unicode instance at 0x9108a10 with str error:

Traceback (most recent call last):

File "/usr/lib/python2.6/dist-packages/twisted/python/", line 546, in _safeFormat

return formatter(o)

UnicodeEncodeError: 'ascii' codec can't encode character u'\u0411' in position 0: ordinal not in range(128)

I should point out the two similar issues: The fix for 1990 will still be an ansii encoded file, with unicode escape sequences. The fix has also not been included in the core repository.

Change History (1)

comment:1 Changed 6 years ago by exarkun

  • Resolution set to duplicate
  • Status changed from new to closed

There's also #989, which I think encompasses all of the same stuff as this ticket describes.

Note: See TracTickets for help on using tickets.