From 9d7f27bf666647898608fbbc664aec52d13f3e86 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 11 Jan 2006 08:58:56 +0000 Subject: [PATCH] gtk always return utf-8 strings. fixes #1375 --- src/vcard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vcard.py b/src/vcard.py index 223f537cf..0d34b58c9 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -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: