From 38bc1e9a51b2a0e07f55d36f66bdad262e6c59da Mon Sep 17 00:00:00 2001 From: nullterminated Date: Mon, 10 Sep 2012 20:09:15 -0700 Subject: [PATCH] Localized files need to be in UTF-16BE encoding --- .../er/extensions/components/ERXLocalizationEditor.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Frameworks/Core/ERExtensions/Sources/er/extensions/components/ERXLocalizationEditor.java b/Frameworks/Core/ERExtensions/Sources/er/extensions/components/ERXLocalizationEditor.java index a16c19cc041..e7d56c580a9 100644 --- a/Frameworks/Core/ERExtensions/Sources/er/extensions/components/ERXLocalizationEditor.java +++ b/Frameworks/Core/ERExtensions/Sources/er/extensions/components/ERXLocalizationEditor.java @@ -186,10 +186,8 @@ public void saveFramework() throws IOException { NSDictionary newDict = (NSDictionary) NSPropertyListSerialization.propertyListFromString(result); if(!newDict.equals(dict)) { throw new IllegalStateException("Data wasn't equal when comparing before save"); - } else { - if(url != null) { - ERXFileUtilities.stringToFile(result, new File(url.getFile())); - } + } else if(url != null) { + ERXFileUtilities.stringToFile(result, new File(url.getFile()), "UTF-16BE"); } } }