org.dom4j.DocumentException: Error on line -1 of document : Invalid encoding name "GBK". Nested exception: Invalid encoding name "GBK".
方法如下:
public RequestXml(String astrFileName)
{
if (bDebug) {
strFileName = astrFileName;
}
else {
//new ConfigCache();
strFileName = Nsrxx.get("CUR_PATH_PORT") + ConfigCache.getConfigItem("CONTROLFILENAME.REQUEST", "request.xml");
}
boolean exists = (new File(strFileName)).exists();
if (exists) {
SAXReader reader = new SAXReader();
try {
FileInputStream is = new FileInputStream(new File(strFileName));
byte[] b = new byte[1024];
int len = 0;
int temp=0;
while((temp=is.read())!=-1){
方法如下:
public RequestXml(String astrFileName)
{
if (bDebug) {
strFileName = astrFileName;
}
else {
//new ConfigCache();
strFileName = Nsrxx.get("CUR_PATH_PORT") + ConfigCache.getConfigItem("CONTROLFILENAME.REQUEST", "request.xml");
}
boolean exists = (new File(strFileName)).exists();
if (exists) {
SAXReader reader = new SAXReader();
try {
FileInputStream is = new FileInputStream(new File(strFileName));
byte[] b = new byte[1024];
int len = 0;
int temp=0;
while((temp=is.read())!=-1){