diff --git a/src/cli/arghandler.py b/src/cli/arghandler.py index 94dbbf04b..f7f0e291b 100644 --- a/src/cli/arghandler.py +++ b/src/cli/arghandler.py @@ -290,7 +290,7 @@ class ArgHandler(object): if self.list: print 'List of known family trees in your database path\n' for name, dirname in self.dbman.family_tree_list(): - print dirname, ', with name ', name + print dirname, ', with name ', name.encode(sys.getfilesystemencoding()) sys.exit(0) if self.list_more: diff --git a/src/cli/clidbman.py b/src/cli/clidbman.py index 2bdd50bdc..32edf56ec 100644 --- a/src/cli/clidbman.py +++ b/src/cli/clidbman.py @@ -155,7 +155,7 @@ class CLIDbManager(object): else: retval["Locked?"] = "no" retval["DB version"] = version - retval["Family tree"] = name + retval["Family tree"] = name.encode(sys.getfilesystemencoding()) retval["Path"] = dirpath retval["Last accessed"] = time.strftime('%x %X', time.localtime(tval))