From a1703f12040fc27cfb20b5ecb443347e230c5bfd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Mon, 4 Jan 2016 21:10:18 +0100 Subject: [PATCH] update: fix encoding issues with the xml index --- fdroidserver/update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index de75848d..0e0aef68 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -826,7 +826,7 @@ def make_index(apps, sortedids, apks, repodir, archive, categories): logging.warning("\tfdroid update --create-key") sys.exit(1) - repoel.setAttribute("pubkey", extract_pubkey()) + repoel.setAttribute("pubkey", extract_pubkey().decode('utf-8')) root.appendChild(repoel) for appid in sortedids: @@ -966,9 +966,9 @@ def make_index(apps, sortedids, apks, repodir, archive, categories): os.symlink(sigfile_path, siglinkname) if options.pretty: - output = doc.toprettyxml() + output = doc.toprettyxml(encoding='utf-8') else: - output = doc.toxml() + output = doc.toxml(encoding='utf-8') with open(os.path.join(repodir, 'index.xml'), 'wb') as f: f.write(output) -- 2.30.2