powered by Jive Software

Problem with the coding of symbols (non latin1) in offline messages

Very simple decision of this problem as it seems to me to change lines (in OfflineMessageStore.java):

… public void addMessage(Message message) {

// Get the message in XML format.

  •   String msgXML = message.getElement().asXML();
    
  • String msgXML = Base64.encode (message.getElement().asXML());

… public Collection<OfflineMessage> getMessages(String username, boolean delete) {

  • String msgXML = rs.getString(1);
  • String msgXML = Base64.decode(rs.getString(1));