-
Notifications
You must be signed in to change notification settings - Fork 622
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
Unicode support for non-latin language #107
Comments
Do you have a repro? I am trying this and for me it works. What is your System encoding? Maybe it's releated to #123 |
TL;DR:
at the top of my server and Have a similar issue in my Python MCP server for other unicode stuff, I added this line at the top of my server.py which fixes it:
With mitigation suggested in #112: There's a different issue when it's unicode only, the message doesn't even hit my own server before erroring out from the SDK I believe: Code is just this inside the tool:
The mitigation in #112 fixes that particular issue, but I get the other encoding problem back, even with my own mitigation. I'm on Windows 10 and SDK version 1.2.0 and using the lowlevel server. |
thank you for that solution. or using it in the mcp config :
this solution comes from modelcontextprotocol/servers#57 |
Yeah, that's smart too. Claude suggested that, but I was unsure of where I could put the env variable because in the code would be too late for it to work. Just noticed that it's actually better, because the MCP inspector output is then correct too. |
Describe the bug
when sending or recieving a non-latin text, the text becomes Jibrish (Non-sense or ?????)
To Reproduce
send a request to one of the tools with non-latin characters
Expected behavior
it should handle all unicode-supported languages
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: