gtk always return utf-8 strings. fixes #1375

This commit is contained in:
Yann Leboulanger 2006-01-11 08:58:56 +00:00
parent 7869571662
commit 9d7f27bf66
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ class VcardWindow:
if response == gtk.RESPONSE_OK:
f = dialog.get_filename()
try:
f = f.decode(sys.getfilesystemencoding())
f = f.decode('utf-8')
except UnicodeError:
pass
else: