powered by Jive Software

Fix for double-byte characters in http-binding?


I`m investigating the issue of double-byte characters in openfire.

I had issues with the MySQL database and the JDBC and Gato helped me solve it and updated the docs.

Now I have problems when sending url encoded utf-8 online messages using http-bind on openfire 3.4.1

Im new to Java but from reading HttpBindServlet and reading about utf-8 shouldnt there be a use of InputStreamReader and OutputStreamWriter?:

parseDocument(request, response, request.getInputStream());

be replaced with something like:

BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream(), “UTF-8”));

I know its the syntax is probably wrong but shouldnt you specify the encoding?

Is there a global encoding specification in openfire?