Skip to content
Snippets Groups Projects
Commit 68b0f184 authored by nkour's avatar nkour
Browse files

iso15 is our last chance

parent 965e9cb8
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment