DCI改进,发布后作业乱码不能打开

1、发布后作业不能打开问题,找到com.comsys.net.cn.dci.ui.dialog.PublishesDialog 的960行,改为这样:

			 //以前没有指定文件编码前,采用系统默认编码
			 //XMLWriter writer = new XMLWriter(new FileWriter(jobNode.getFilePath()), format);
			
			//指定文件编码
			 OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(jobNode.getFilePath(), false),"UTF-8");
			 XMLWriter writer = new XMLWriter(osw, format);
			 writer.write(document);
			 writer.close();

  

你可能感兴趣的:(乱码)