【发布时间】:2015-07-15 22:07:06
【问题描述】:
项目链接:https://github.com/GunB/eExcelParser
我正在尝试更改基于 metadata.xml 的 XML,当我运行 Netbeans 进行编译时它可以正常工作,但是当我创建 Clean and Build 版本时它会抛出 Invalid byte 2 of a 3-byte UTF-8 sequence ...我不明白为什么
我正在使用此代码来读取 XML 文件
File fXmlFile = new File(strBase);
DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
doc = dBuilder.parse(fXmlFile);
我正在使用的库是POI、Guava、POI 中包含的 XMLBeans 和 dom4j
项目也发送此警告:
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Warning: Setting Codebase manifest attribute to '*' due to current JNLP Codebase. Set manifest.custom.codebase property to override the non-secure value '*'.
【问题讨论】: