From da35708096ada43287e0a9b63b20f40ab994a78f Mon Sep 17 00:00:00 2001 From: Thomas Renger Date: Sun, 2 Jun 2019 22:24:58 +0200 Subject: [PATCH] UTF-8 decode participants list --- update-participants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-participants.py b/update-participants.py index d020a5d..60c1559 100755 --- a/update-participants.py +++ b/update-participants.py @@ -12,7 +12,7 @@ config=settings.load_settings() x = xmlrpc.client.ServerProxy(config['xmlrpc_endpoint']) page = x.wp.getPage(config['blog_id'], config['participants_page_id'], config['username'], config['password']) -text = render.render_template('templates/users.tmpl') +text = render.render_template('templates/users.tmpl').decode("utf-8") page['description'] = text x.wp.editPage(config['blog_id'], config['participants_page_id'], config['username'], config['password'],page,True)