summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-12 14:53:37 +0000
committerErik Johnston <erik@matrix.org>2014-12-12 14:53:37 +0000
commitc39beb55593cd08abe67eddd902627d6171cb245 (patch)
tree724bf5c8e6ed8ccbb25e2f485139fdf794cd0f6b
parentPyflakes (diff)
downloadsynapse-c39beb55593cd08abe67eddd902627d6171cb245.tar.xz
Store json as UTF-8 and not bytes
Diffstat (limited to '')
-rw-r--r--synapse/storage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 3bc3622169..079ddac605 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -168,7 +168,7 @@ class DataStore(RoomMemberStore, RoomStore,
             values={
                 "event_id": event.event_id,
                 "room_id": event.room_id,
-                "json": encode_canonical_json(event_dict),
+                "json": encode_canonical_json(event_dict).decode("UTF-8"),
             },
             or_replace=True,
         )