Skip to content

Commit eb9099c

Browse files
committed
bug: creash on uniqode characters in quotes
1 parent a589436 commit eb9099c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chatbot/chatbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def leave(topic):
136136
def publish(topic, text):
137137
tid = next_id()
138138
return pb.ClientMsg(pub=pb.ClientPub(id=tid, topic=topic, no_echo=True,
139-
content=json.dumps(text, ensure_ascii=False).encode('utf-8')))
139+
content=json.dumps(text).encode('utf-8')))
140140

141141
def note_read(topic, seq):
142142
return pb.ClientMsg(note=pb.ClientNote(topic=topic, what=pb.READ, seq_id=seq))

0 commit comments

Comments
 (0)