gtk always return utf-8 strings. fixes #1375
This commit is contained in:
parent
7869571662
commit
9d7f27bf66
|
@ -201,7 +201,7 @@ class VcardWindow:
|
||||||
if response == gtk.RESPONSE_OK:
|
if response == gtk.RESPONSE_OK:
|
||||||
f = dialog.get_filename()
|
f = dialog.get_filename()
|
||||||
try:
|
try:
|
||||||
f = f.decode(sys.getfilesystemencoding())
|
f = f.decode('utf-8')
|
||||||
except UnicodeError:
|
except UnicodeError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue