Character encoding issue in BOSH


Users experience character encoding issues after an upgrade to Openfire 3.10.0.

Client (connected through BOSH) sends:

Server replies with:




Guus der Kinderen
October 19, 2015, 11:24 AM

That was helpful Florian, thanks.

I've found the cause of the problem: when reading HTTP data from the client, an explicit character set is not defined, causing Java to fall back to the system default.

A pull request that addresses this issue is available here:

I was unable to merge the 3.10-based pull request into master neatly. I've created a second pull request for master here:

Florian Sailer
October 16, 2015, 2:22 PM

I made some tests and figured out that i can fix the issue by adding "-Dfile.encoding=UTF-8" as option to the JVM. (On Ubuntu i added this to /etc/default/openfire). I hope this helps...

Florian Sailer
October 13, 2015, 2:48 PM

I downloaded 3.11.0 Alpha, installed in on my test system and still see this error. I have nginx configured as reverse proxy in front of openfire. Same setup works fine with 3.9.3. Is there anything i could do to help trace down this bug? Providing log files maybe?

Guus der Kinderen
October 12, 2015, 1:49 PM

So far, I am unable to reproduce the issue using jsjac (connecting to a local server running 3.11.0 Alpha) and Candy (connecting to, which is running 3.10.3 Alpha)



Guus der Kinderen


Guus der Kinderen