Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2013-01-01 22:44:25 +0400
committerYann Leboulanger <asterix@lagaule.org>2013-01-01 22:44:25 +0400
commit414e3493453630eaf69abb69f1bddd578a9461e1 (patch)
treebbd9e6500662cf1c2a604bd5942d16bfad6d042a /src/profile_window.py
parente71188a6fa664866d04c0b0af4426d106400c5b1 (diff)
python uses unicode internally
Diffstat (limited to 'src/profile_window.py')
-rw-r--r--src/profile_window.py4
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: