Fix: Add UTF-8 charset to Content-Type header for Chinese tool names by internet-dot · Pull Request #905 · modelcontextprotocol/java-sdk
When calling tools with Chinese names using HttpClientSseClientTransport or HttpClientStreamableHttpTransport, the JSON body was sent without explicit charset encoding. This caused Chinese characters to be corrupted on the server side because the default encoding wasn't UTF-8. This fix adds '; charset=UTF-8' to the Content-Type header in both transport classes, ensuring proper encoding of non-ASCII characters. Fixes modelcontextprotocol#260