summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/widgets.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/widgets.py b/alot/widgets.py
index e0cf45e4..34faa179 100644
--- a/alot/widgets.py
+++ b/alot/widgets.py
@@ -134,6 +134,8 @@ class TagWidget(urwid.AttrMap):
def __init__(self, tag):
self.tag = tag
self.translated = config.get('tag translate', tag, fallback=tag)
+ # encode to utf-8 before passing to urwid (issue #4)
+ self.translated = self.translated.encode('utf-8')
txt = urwid.Text(self.translated, wrap='clip')
normal = config.get_tagattr(tag)
focus = config.get_tagattr(tag, focus=True)