From ba854d5971b92b155298e58b9cca983b22a178d9 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 11 Aug 2018 10:20:56 -0500 Subject: [PATCH] remote actor: force utf-8 encoding --- viera/remote_actor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viera/remote_actor.py b/viera/remote_actor.py index 14d2db3..28e49b7 100644 --- a/viera/remote_actor.py +++ b/viera/remote_actor.py @@ -9,6 +9,6 @@ async def fetch_actor(uri, force=False): async with aiohttp.ClientSession() as session: async with session.get(uri, headers={'Accept': 'application/activity+json'}) as resp: - ACTORS[uri] = (await resp.json(content_type=None)) + ACTORS[uri] = (await resp.json(encoding='utf-8', content_type=None)) DATABASE["actors"] = ACTORS return ACTORS[uri]