-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
How to support Chinese characters in new WebSocketClient() #365
Comments
Hello @9992800, you have to html encode all the chinese characters to valid html. Greetings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when I add parameters at the end of url as follow:
wss:https://xxx.com/online_test?system=-1&80010086=-1&80010087=-1&userName=我是.
WebSocketClient() translate the Chinese words to ??:3
I try to change the headers , but failed.
Map<String, String> headers = new HashMap<String, String>();
headers.put("Content-Type", "application/json; charset=utf-8");
Still wrong :
write(293): {GET /online_test?system=-1&80010086=-1&80010087=-1&self=3&userName=??:3&token=a45dac5adfa4w HTTP/1.1
The text was updated successfully, but these errors were encountered: