Author: tchemit Date: 2008-08-12 16:31:16 +0000 (Tue, 12 Aug 2008) New Revision: 1010 Modified: trunk/lutinutil/src/main/java/org/codelutin/i18n/bundle/I18nBundleEntry.java Log: add log on i18n entries loaded to debug UTF-8 problem Modified: trunk/lutinutil/src/main/java/org/codelutin/i18n/bundle/I18nBundleEntry.java =================================================================== --- trunk/lutinutil/src/main/java/org/codelutin/i18n/bundle/I18nBundleEntry.java 2008-08-12 16:22:09 UTC (rev 1009) +++ trunk/lutinutil/src/main/java/org/codelutin/i18n/bundle/I18nBundleEntry.java 2008-08-12 16:31:16 UTC (rev 1010) @@ -24,6 +24,7 @@ import java.io.InputStream; import java.net.URL; import java.util.Locale; +import java.util.Map.Entry; import java.util.Properties; /** @@ -123,7 +124,13 @@ try { I18nFileReader fileReader = new I18nFileReader(); inputStream = getPath().openStream(); - fileReader.load(inputStream, language.getEncoding()); + String encoding = language.getEncoding(); + fileReader.load(inputStream, encoding); + if (I18nBundle.log.isDebugEnabled()) { + for (Entry<Object, Object> entry : resource.entrySet()) { + I18nBundle.log.debug(encoding + " : " + entry); + } + } resource.putAll(fileReader); fileReader.clear(); if (I18nBundle.log.isDebugEnabled()) {