Bug 46805 prepare Compare for encoding support
I20031111 The Compare plugin only supports the global workspace encoding. It does not support encodings per file.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/PropertiesStructureCreator.java
isEditable= ((IEditableContent) input).isEditable();
		PropertyNode root= new PropertyNode(doc, isEditable) {
			void nodeChanged(PropertyNode node) {
				save(this, input);
			}
		};
				
		try {
			parsePropertyFile(root, doc);
		} catch (IOException ex) {
			JavaPlugin.log(ex);
		}
		
		return root;
	}
	
	public boolean canSave() {
		return true;
	}
	
	public void save(IStructureComparator structure, Object input) {
		if (input instanceof IEditableContent && structure instanceof PropertyNode) {
			IDocument doc= ((PropertyNode)structure).getDocument();
			IEditableContent bca= (IEditableContent) input;
			String content= doc.get();
			bca.setContent(content.getBytes());
		}
	}
		
	public IStructureComparator locate(Object path, Object source) {