Skip to content

Commit

Permalink
fix ERXLocalizationEditor
Browse files Browse the repository at this point in the history
Localization Files has to be UTF-16BE isn't true. Here we use UTF-8 for years. And never made problems.
  • Loading branch information
ishimoto committed Sep 18, 2012
1 parent 9325492 commit dd490f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Frameworks/Core/ERExtensions/Resources/Properties
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,11 @@ er.extensions.stackTrace.skipPatternsFile=StackTraceSkipPatterns-Normal.plist
#########################################################################
er.extensions.ERXWOForm.multipleSubmitDefault=true

#########################################################################
# ERXLocalizationEditor
#########################################################################
er.extensions.components.ERXLocalizationEditor=UTF-16BE

#########################################################################
# SSL DirectConnect
#########################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void saveFramework() throws IOException {
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()), "UTF-16BE");
ERXFileUtilities.stringToFile(result, new File(url.getFile()), ERXProperties.stringForKeyWithDefault("er.extensions.components.ERXLocalizationEditor", "UTF-16BE"));
}
}
}
Expand Down

0 comments on commit dd490f3

Please sign in to comment.