Author: chatellier Date: 2009-06-30 12:14:52 +0000 (Tue, 30 Jun 2009) New Revision: 2447 Modified: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/util/EvaluatorHelper.java Log: Generate equation file to utf-8 encoding Modified: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/util/EvaluatorHelper.java =================================================================== --- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/util/EvaluatorHelper.java 2009-06-30 10:39:17 UTC (rev 2446) +++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/util/EvaluatorHelper.java 2009-06-30 12:14:52 UTC (rev 2447) @@ -151,7 +151,9 @@ String content = generateContent(packageName, className, interfaceMethod, script); try { - FileUtil.writeString(fileSrc, content); + // force writing to UTF-8 + // fix compilation issue : unmappable characters + FileUtil.writeString(fileSrc, content, "utf-8"); } catch (IOException zzz) { throw new IsisFishRuntimeException(_("isisfish.error.save.script.compilation", fileSrc), zzz); } @@ -187,7 +189,7 @@ return result; } - protected static String generateContent (String packageName, String className, Method interfaceMethod, String script) { + protected static String generateContent(String packageName, String className, Method interfaceMethod, String script) { String content = ""; if (packageName != null && !"".equals(packageName)) { content += "package " + packageName + ";";