diff options
author | pazz <patricktotzke@gmail.com> | 2011-08-14 22:52:33 +0100 |
---|---|---|
committer | pazz <patricktotzke@gmail.com> | 2011-08-14 22:52:33 +0100 |
commit | 86af234229e3986f6e46c06f35ba51e0ad710f25 (patch) | |
tree | 67916ecbf3cfb85e97c6dbe2be1299f4e3da3467 /alot | |
parent | 7b1a0540e1cb307977b6f20f0adeb6cb5a814058 (diff) | |
parent | c451553a244a3da6d57d87f4e820b328681535c2 (diff) |
Merge branch 'hotfix-unicode-tags' into develop
Diffstat (limited to 'alot')
-rw-r--r-- | alot/widgets.py | 2 |
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) |