diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2013-01-01 22:44:25 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2013-01-01 22:44:25 +0400 |
commit | 414e3493453630eaf69abb69f1bddd578a9461e1 (patch) | |
tree | bbd9e6500662cf1c2a604bd5942d16bfad6d042a /src/profile_window.py | |
parent | e71188a6fa664866d04c0b0af4426d106400c5b1 (diff) |
python uses unicode internally
Diffstat (limited to 'src/profile_window.py')
-rw-r--r-- | src/profile_window.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profile_window.py b/src/profile_window.py index 7e7fc76e7..04d596294 100644 --- a/src/profile_window.py +++ b/src/profile_window.py @@ -344,7 +344,7 @@ class ProfileWindow: 'ADR_WORK_REGION', 'ADR_WORK_PCODE', 'ADR_WORK_CTRY'] vcard_ = {} for e in entries: - txt = self.xml.get_object(e + '_entry').get_text().decode('utf-8') + txt = self.xml.get_object(e + '_entry').get_text() if txt != '': vcard_ = self.add_to_vcard(vcard_, e, txt) @@ -354,7 +354,7 @@ class ProfileWindow: end_iter = buff.get_end_iter() txt = buff.get_text(start_iter, end_iter, False) if txt != '': - vcard_['DESC'] = txt.decode('utf-8') + vcard_['DESC'] = txt # Avatar if self.avatar_encoded: |