From 0ee301e5a798e556252bc5af8a57dd32293db87c Mon Sep 17 00:00:00 2001 From: Piotr Wolny Date: Thu, 24 Apr 2014 11:04:58 +0200 Subject: [PATCH] Encode using capital letters. --- .../editor/PropertiesDocumentWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/gildur/simplepropertieseditor/editor/PropertiesDocumentWrapper.java b/src/org/gildur/simplepropertieseditor/editor/PropertiesDocumentWrapper.java index 62fc54d..fc5ada7 100755 --- a/src/org/gildur/simplepropertieseditor/editor/PropertiesDocumentWrapper.java +++ b/src/org/gildur/simplepropertieseditor/editor/PropertiesDocumentWrapper.java @@ -113,7 +113,7 @@ public class PropertiesDocumentWrapper implements IDocument { for (int i = 0; i < content.length(); i++) { char c = content.charAt(i); if (asciiCharset.encode(String.valueOf(c)).equals(encodedUnknown)) { - buffer.append(String.format("\\u%04x", (int) c)); + buffer.append(String.format("\\u%04X", (int) c)); } else { buffer.append(c); }