Bug 56885 problematic use of platform encoding in CompareResultDialog.CompareElement [JUnit]
M8 org.eclipse.jdt.internal.junit.ui.CompareResultDialog.CompareElement uses platform encoding to encode Unicode string. This may result in data loss if platform encoding doesn't preserve Unicode.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/CompareResultDialog.java
return fContent;
	    }
	    private static InputStream createInputStream(String s) {
		    try {
		        return new ByteArrayInputStream(s.getBytes(ResourcesPlugin.getEncoding()));
		    } catch (UnsupportedEncodingException e) {
		        return new ByteArrayInputStream(s.getBytes());
		    }
		}
	}
    private TextMergeViewer fViewer;
    private String fExpected;
    private String fActual;
    private String fTestName;
    
    
    private static CompareResultDialog fgThis;
    
    private int fPrefix;
    private int fSuffix;
    
    
    private final static String DIALOG_BOUNDS_KEY= "CompareResultDialogBounds"; 
    private static final String X= "x"; 
    private static final String Y= "y"; 
    private static final String WIDTH= "width"; 
    private static final String HEIGHT= "height"; 
    private IDialogSettings fSettings;
	protected Rectangle fNewBounds;