Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant work with Unicode, Chinese for example #83

Open
fengin opened this issue Feb 6, 2025 · 2 comments
Open

Cant work with Unicode, Chinese for example #83

fengin opened this issue Feb 6, 2025 · 2 comments
Labels
bug Something isn't working question Further information is requested

Comments

@fengin
Copy link

fengin commented Feb 6, 2025

Hi, It cant work with Chinese words for input or out put.

  1. list tools return unreadable code

Image

2.input it will exception

2025-02-06 15:19:31,251 - mcp.server.lowlevel.server - DEBUG - Received message: 1 validation error for JSONRPCMessage Input should be a valid string, unable to parse raw data as a unicode string [type=string_unicode, input_value='{"jsonrpc":"2.0","id":3,...rompt":"�\udc91"}}}\n', input_type=str] For further information visit https://errors.pydantic.dev/2.10/v/string_unicode

How can i fixed it ?

@github-actions github-actions bot added bug Something isn't working question Further information is requested labels Feb 6, 2025
@fengin
Copy link
Author

fengin commented Feb 6, 2025

No way, I have to use base64 input text ,and decode it in my implement .
Can you solve it later ?

@fengin
Copy link
Author

fengin commented Feb 6, 2025

it need to upgrade mcp sdk to 1.2.1 to fix this bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant