Describe the bug
In web browser client(i use converse), if there are Chinese characters , the xhr.responseText would be truncated, both in chrome and firefox. the xhr.reponseText would be like this
notice the characters truncated at the end is exactly the same with the number of Chinese characters in the body.
To Reproduce
User web client (i use converse.js) , the problem is related to BOSH/HTTP protocol
send messages with Chinese characters
Expected behavior
Message can be received , but it's not
Unknown commented 5 years ago
The issue is caused by the miscaculated HTTP Header Content-Length in http protocol content, which is related to character encoding. When i increase the content-length by the number of chinses characters in body, the message then can be received correctly.
Describe the bug In web browser client(i use converse), if there are Chinese characters , the xhr.responseText would be truncated, both in chrome and firefox. the xhr.reponseText would be like this
notice the characters truncated at the end is exactly the same with the number of Chinese characters in the body.
To Reproduce
Expected behavior Message can be received , but it's not