From 2f7dc3dc3476512bb476118e89b6fb81e9a64a41 Mon Sep 17 00:00:00 2001 From: Vincent Lucas Date: Tue, 14 Aug 2012 17:07:26 +0000 Subject: [PATCH] Corrects problem when displaying an apostrophe character in the ChatConversationPanel (replace "'" by "&39;"). --- .../impl/gui/main/chat/ChatConversationPanel.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/net/java/sip/communicator/impl/gui/main/chat/ChatConversationPanel.java b/src/net/java/sip/communicator/impl/gui/main/chat/ChatConversationPanel.java index 4e98ef834..ff6859a68 100755 --- a/src/net/java/sip/communicator/impl/gui/main/chat/ChatConversationPanel.java +++ b/src/net/java/sip/communicator/impl/gui/main/chat/ChatConversationPanel.java @@ -441,6 +441,12 @@ public String processMessage(ChatMessage chatMessage, String keyword) if (contactDisplayName == null || contactDisplayName.trim().length() <= 0) contactDisplayName = contactName; + else + { + // for some reason ' is not rendered correctly from our ui, + // lets use its equivalent. Other similar chars(< > & ") seem ok. + contactDisplayName = contactDisplayName.replaceAll("'", "'"); + } String contentType = chatMessage.getContentType(); long date = chatMessage.getDate();