Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit a5153bc

Browse files
authored
ensure_ascii on serialise (#6)
1 parent ec61b17 commit a5153bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nostr/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(
3636
@staticmethod
3737
def serialize(public_key: str, created_at: int, kind: int, tags: "list[list[str]]", content: str) -> bytes:
3838
data = [0, public_key, created_at, kind, tags, content]
39-
data_str = json.dumps(data, separators=(',', ':'))
39+
data_str = json.dumps(data, separators=(',', ':'), ensure_ascii=False)
4040
return data_str.encode()
4141

4242
@staticmethod

0 commit comments

Comments
 (0)