Hello, I’m a user of Openfire working in China, so I should use Chinese characters. There are some string wrong when we use UTF-8 to send a message to the openfire server. Sometimes when the openfire convert bytebuffer to charbuffer, the server cut the bytebuffer not with a whole char, so there is “??” in the charbuffer. We think before converting bytebuffer to charbuffer openfire should estimate if the bytebuffer ends with “>” when it do UTF-8 decoding. Can you fix the bug in the new version? Thank you!
By the way, the bytebuffer to charbuffer is in XMLLightweightParser.java, line 167.