//保存XML
        TransformerFactory tFactory =TransformerFactory.newInstance();
        Transformer transformer = null;
        try {
            transformer = tFactory.newTransformer();
            //设置XML编码
            transformer.setOutputProperty(OutputKeys.ENCODING,"GB2312");
            // 将DOM对象转化为DOMSource类对象,该对象表现为转化成别的表达形式的信息容器。
            DOMSource source = new DOMSource(doc);
            //System.out.print(szFilePath);
            // 获得一个StreamResult类对象,该对象是DOM文档转化成的其他形式的文档的容器,可以是XML文件,文本文件,HTML文件。这里为一个XML文件。
            StreamResult result = new StreamResult(new File(szFilePath));
            // 调用API,将DOM文档转化成XML文件。
            transformer.transform(source, result);
        } catch (TransformerException ex) {
            System.out.print(ex.getMessage());
            return;
        }我在上面设置了编码为GB2312,为什么在XML里面还是乱码?