Skip to content

Commit 991bf7b

Browse files
authored
Merge pull request #1 from VvvvvGH/VvvvvGH-patch-1
Preserve non-ASCII characters in JSON output for better multilingual support
2 parents b4c7db6 + 4b81d6e commit 991bf7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mcp/server/fastmcp/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def _convert_to_content(
552552

553553
if not isinstance(result, str):
554554
try:
555-
result = json.dumps(pydantic_core.to_jsonable_python(result))
555+
result = json.dumps(pydantic_core.to_jsonable_python(result), ensure_ascii=False)
556556
except Exception:
557557
result = str(result)
558558

0 commit comments

Comments
 (0)