Encode using capital letters.

This commit is contained in:
Piotr Wolny
2014-04-24 11:04:58 +02:00
parent d2348f8761
commit 0ee301e5a7

View File

@@ -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);
}