现在有一个xml文档,我需要改变里面的内容后输出成另一个xml,
java程序在我本地(win 10)程序运行正常,
但是上云以后(win server 2016)出现了字符集问题,java程序居然找不到标签里面的字段值,但是我用txt打开输出的xml可以找到相应的字段值。
请问大神如何处理这个问题。
这是配置:
Configuration conf = new Configuration();
//加载模板文件(模板的路径)
conf.setDirectoryForTemplateLoading(new File(FTL_TEMPLATE_PATH));
// 加载模板
Template template = conf.getTemplate(aepxName+".xml");
// 定义输出
BufferedWriter writer = new BufferedWriter (new OutputStreamWriter (new FileOutputStream (filePath + fileOnlyName,true),"UTF-8"));
template.process(ftlmap,writer);
writer.flush();
writer.close();
yml配置:
spring:
freemarker:
charset: UTF-8
content-type: text/xml
java 调用 Dos 执行AE 程序出错的地方
After EffectsfJ: à?üe?? C:\D\PQYD_AEPX\zhuanchang\364028805b7451f6960174525c95c0000e.aepx
aerender ERROR: No comp was found with the given name.