From 68b0f184020c4278676612b8a58878ee26208b01 Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Fri, 18 Nov 2005 13:26:24 +0000
Subject: [PATCH] iso15 is our last chance

---
 src/common/helpers.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/common/helpers.py b/src/common/helpers.py
index 49a71308dc..1cc2890961 100644
--- a/src/common/helpers.py
+++ b/src/common/helpers.py
@@ -551,7 +551,8 @@ def get_icon_name_to_show(contact, account = None):
 
 def decode_string(string):
 	'''try to decode (to make it Unicode instance) given string'''
-	encodings = (sys.getfilesystemencoding(), 'utf-8', 'iso-8859-1', 'iso-8859-15')
+	# by the time we go to iso15 it better be the one else we show bad characters
+	encodings = (sys.getfilesystemencoding(), 'utf-8', 'iso-8859-15')
 	for encoding in encodings:
 		try:
 			string = string.decode(encoding)
-- 
GitLab