diff --git a/mmwatch/www/mmwatch.py b/mmwatch/www/mmwatch.py index b6c4b13..429c95c 100644 --- a/mmwatch/www/mmwatch.py +++ b/mmwatch/www/mmwatch.py @@ -40,7 +40,7 @@ def get_user_rating(): def quoteattr(s): return '"{0}"'.format(str(s).replace('&', '&').replace('<', '<').replace('>', '>').replace('"', '"')) xml = '\n\n' - for field in (('name', user.user), ('rank', user.rank), ('edits', user.edits), ('joined', user.joined.isoformat())): + for field in (('name', user.user.encode('utf-8')), ('rank', user.rank), ('edits', user.edits), ('joined', user.joined.isoformat())): xml = xml + ' <{0} value={1} />\n'.format(field[0], quoteattr(field[1])) xml = xml + '' return Response(xml, mimetype='application/xml')