Skip to content

Commit fcdbc6c

Browse files
iyangingsyfun
authored andcommitted
fix(scalar): add ensure_ascii=False to json.dumps() in JSONString
1 parent fcc1864 commit fcdbc6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gql/scalar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class JSONString:
106106
@staticmethod
107107
def serialize(value: Any) -> str:
108108
if isinstance(value, (dict, list, tuple)):
109-
return json.dumps(value)
109+
return json.dumps(value, ensure_ascii=False)
110110

111111
if isinstance(value, str):
112112
return value

0 commit comments

Comments
 (0)