Store json as UTF-8 and not bytes

This commit is contained in:
Erik Johnston committed 2014-12-12 14:53:37 +00:00
1 parent 75085bb4d1
commit c39beb5559
1 file changed
+1 -1
+1 -1
View File
@@ -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,
)