Bug 272616 GB18030: 4-byte GB18030 displayed as ? in SWT Clipboard RTFTransfer.
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/ClipboardExample.java
pasteImageCanvas.addListener(SWT.Paint, new Listener() {
		public void handleEvent(Event e) {
			if(pasteImage[0] != null) {
				GC gc = e.gc;
				gc.drawImage(pasteImage[0], pasteOrigin.x, pasteOrigin.y);
				Rectangle rect = pasteImage[0].getBounds();
				Rectangle client = pasteImageCanvas.getClientArea ();
				int marginWidth = client.width - rect.width;
				if (marginWidth > 0) {
					gc.fillRectangle(rect.width, 0, marginWidth, client.height);
				}
				int marginHeight = client.height - rect.height;
				if (marginHeight > 0) {
					gc.fillRectangle(0, rect.height, client.width, marginHeight);
				}
				gc.dispose();
			}
		}
	});
	b = new Button(pasteParent, SWT.PUSH);
	b.setText("Paste");
	b.addSelectionListener(new SelectionAdapter() {
		public void widgetSelected(SelectionEvent e) {		
			ImageData data =(ImageData)clipboard.getContents(ImageTransfer.getInstance());
			if (data != null) {
				if (pasteImage[0] != null) {
					System.out.println("PasteImage");
					pasteImage[0].dispose();
				}
				status.setText("");