以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DOM/SAX/XPath 』  (http://bbs.xml.org.cn/list.asp?boardid=11)
----  请问:jdom生成xml中(UTF-8),部分中文字符出现乱码,是怎么回事呢?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=11&rootid=&id=32276)


--  作者:zjsbyh
--  发布时间:5/14/2006 8:43:00 AM

--  请问:jdom生成xml中(UTF-8),部分中文字符出现乱码,是怎么回事呢?
请问:jdom生成xml中(UTF-8),部分中文字符出现乱码,是怎么回事呢?

xml文件:

<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://fitech-report.com/smis" xmlns:xsi="http://www.w3.org/2001/XMLSchema" reporttype="POINT" reportlayer="MAIN">
    <common>
        <sign>
            <fitechFiller>admin</fitechFiller>
            <fitechChecker>admin</fitechChecker>
            <fitechPrincipal>admin</fitechPrincipal>
        </sign>
        <fitechTitle>各项资产减㿼损失准备情况表</fitechTitle>
        <fitechRange>2</fitechRange>
        <fitechUnit>万元</fitechUnit>
        <fitechCurrency />
        <fitechSubtitle />
        <fitechVersion>0512</fitechVersion>
        <fitechSubmitYear />
        <fitechSubmitMonth />
    </common>
    <data>
        <cellRow>6</cellRow>
        <cellCol>A</cellCol>
        <cellvalue>1</cellvalue>
        <cellType>浮点圿</cellType>
    </data>
    <data>
        <cellRow>9</cellRow>
        <cellCol>B</cellCol>
        <cellvalue>2.资产减㿼准墿</cellvalue>
        <cellType>字符圿</cellType>
    </data>
</report>


--  作者:chenzenan
--  发布时间:10/23/2007 7:19:00 PM

--  
是不是由于没设置成setEncoding("gb2312")格式的缘故啊?
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
62.500ms