summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2011-08-14 16:21:46 -0400
committerpazz <patricktotzke@gmail.com>2011-08-14 22:51:10 +0100
commitc451553a244a3da6d57d87f4e820b328681535c2 (patch)
treea2b51e49a46b84677646d25ddda97e597fabd9bc /alot
parentd4dd805f84d1dff3c54dead6521a7b7b94da9f4b (diff)
encode to utf-8 before passing to urwid (issue #4)
Diffstat (limited to 'alot')
-rw-r--r--alot/widgets.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/widgets.py b/alot/widgets.py
index 8a6d22f4..2b3a6f19 100644
--- a/alot/widgets.py
+++ b/alot/widgets.py
@@ -118,6 +118,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)