summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage/__init__.py')
-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,
         )