Skip to content

Commit

Permalink
Attempted fix for GRAILS-12013: i18n: umlauts displayed wrong in Wind…
Browse files Browse the repository at this point in the history
…ows environment
  • Loading branch information
graemerocher committed Mar 3, 2015
1 parent fe20a2e commit 5f31ae7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class I18nGrailsPlugin extends Plugin {
def application = grailsApplication
def config = application.config
boolean gspEnableReload = config.getProperty(Settings.GSP_ENABLE_RELOAD, Boolean, false)
String encoding = config.getProperty(Settings.GSP_VIEW_ENCODING, 'UTF-8')

messageSource(PluginAwareResourceBundleMessageSource) {
fallbackToSystemLocale = false
Expand All @@ -57,6 +58,7 @@ class I18nGrailsPlugin extends Plugin {
cacheSeconds = config.getProperty(I18N_CACHE_SECONDS, Integer, 5)
fileCacheSeconds = config.getProperty(I18N_FILE_CACHE_SECONDS, Integer, 5)
}
defaultEncoding = encoding
}

localeChangeInterceptor(ParamsAwareLocaleChangeInterceptor) {
Expand Down

0 comments on commit 5f31ae7

Please sign in to comment.