diff --git a/src/conversation_textview.py b/src/conversation_textview.py index 15db014ee491ccf5f8ae5b4bedaec2808b5c4899..06c4c53b3ef7bb2ee2d97d65cf07db3f94abae12 100644 --- a/src/conversation_textview.py +++ b/src/conversation_textview.py @@ -758,7 +758,7 @@ class ConversationTextview: format += day_str + ' ' format += '%X' tim_format = time.strftime(format, tim) - if locale.getpreferredencoding() == 'UTF-8': + if locale.getpreferredencoding() != 'KOI8-R': # if tim_format comes as unicode because of day_str. # we convert it to the encoding that we want (and that is utf-8) tim_format = helpers.ensure_utf8_string(tim_format)