DbUnit export 唔到簡字....

出來是"&#12..."
看番D正常中文Text files D bytes 唔系噤的...
  1. public class DatabaseExportSample
  2. {
  3.     public static void main(String[] args) throws Exception
  4.     {
  5.         // database connection
  6.         Class driverClass = Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
  7.         Connection jdbcConnection = DriverManager.getConnection(
  8.                 "jdbc:derby:E:/Jacky/Documents/NetBeans Projects/ABC", "abc", "xxxx");
  9.         IDatabaseConnection connection = new DatabaseConnection(jdbcConnection);

  10.         // full database export
  11.         IDataSet fullDataSet = connection.createDataSet();               
  12.         //FlatXmlDataSet.write(fullDataSet, new FileOutputStream("full.xml", "GB2312"));
  13.         FlatXmlDataSet.write (fullDataSet, new FileWriter ("full.xml"), "GB2312");
  14.          
  15.     }
  16. }
複製代碼