From 547d2ac46ea1feb323fd945de690b8ee0ca9c5f3 Mon Sep 17 00:00:00 2001 From: clemenso Date: Thu, 13 Nov 2008 18:33:03 +0000 Subject: FRAME HashDataDisplay FRAME Help git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@167 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/ViewerDialog.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'BKUCommonGUI/src/main') diff --git a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/ViewerDialog.java b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/ViewerDialog.java index cd04ad98..e643c876 100644 --- a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/ViewerDialog.java +++ b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/ViewerDialog.java @@ -151,6 +151,9 @@ public class ViewerDialog extends JDialog InputStream content = hashData.getHashDataInput(); String mimeType = hashData.getMimeType(); String encoding = hashData.getEncoding(); + if (encoding == null) { + encoding = "UTF-8"; + } JPanel hashDataPanel = createViewerPanel(messages.getString(BKUGUIFacade.MESSAGE_HASHDATA), content, mimeType, encoding, helpListener); JPanel buttonPanel = createButtonPanel(saveListener, saveCommand); -- cgit v1.2.3