fixed bug 0009302: The xml files created when a language is exported are not generated with utf-8 enconding when using window
authorAsier Lostalé <asier.lostale@openbravo.com>
Thu, 04 Jun 2009 15:18:28 +0200
changeset 3963 9f3da007ec83
parent 3962 b814d9f2bdc0
child 3964 ffed97de08a4
fixed bug 0009302: The xml files created when a language is exported are not generated with utf-8 enconding when using window
src/org/openbravo/erpCommon/ad_forms/Translation.java
--- a/src/org/openbravo/erpCommon/ad_forms/Translation.java	Thu Jun 04 11:30:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/Translation.java	Thu Jun 04 15:18:28 2009 +0200
@@ -571,8 +571,7 @@
       // Output
       out.createNewFile();
       // Transform
-      final OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(out));// ,
-      // "ISO-8859-1");
+      final OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(out), "UTF-8");
       transformer.transform(source, new StreamResult(osw));
     } catch (final Exception e) {
       log4j.error("exportTrl", e);