生成XML文件的问题 不知道怎么回事,我生成的XML文件里中文都是乱码高手指点下,谢谢!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?xml version='1.0' encoding='GB2312' ?><document Name='行政事业性收费许可证'><正本><证号>202334</证号>这是中间的一段 头部改为<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?><?xml version="1.0" encoding="utf-8: standalone="yes"?><?xml version="1.0" encoding="UTF-8" ?> 这都试过,都不行 你是用什么工具生成的?我用.net dom实现,很好的。<?xml version="1.0" encoding="utf-8"?><filelist> <file filename="200502公共频道编辑线机房排班表.xls"> <filesize>15872字节</filesize> <author>沈聪</author> <uploadate>2006-02-23 16:59:36</uploadate> <filepath>photo/200502公共频道编辑线机房排班表.xls</filepath> </file> <file filename="200510卫视编辑线机房排班表.xls"> <filesize>13824字节</filesize> <author>沈聪</author> <uploadate>2006-02-23 13:54:06</uploadate> <filepath>photo/200510卫视编辑线机房排班表.xls</filepath> </file> <file filename="200511.xls"> <filesize>13824字节</filesize> <author>沈聪</author> <uploadate>2006-02-23 16:52:18</uploadate> <filepath>photo/200511.xls</filepath> </file> <file filename="200512.xls"> <filesize>13824字节</filesize> <author>沈聪</author> <uploadate>2006-02-23 16:53:06</uploadate> <filepath>photo/200512.xls</filepath> </file> <file filename="200511卫视编辑线机房排班表.xls"> <filesize>10752字节</filesize> <author>沈聪</author> <uploadate>2006-02-23 16:55:02</uploadate> <filepath>photo/200511卫视编辑线机房排班表.xls</filepath> </file> <file filename="200508卫视编辑线机房排班表.xls"> <filesize>13824字节</filesize> <author>沈聪</author> <uploadate>2006-02-23 16:59:54</uploadate> <filepath>photo/200508卫视编辑线机房排班表.xls</filepath> </file></filelist> 对了,你的根xml文档中怎么没有根节点??? 什么也不设试一下,还有你的查勘XML文件的工具是什么,EditPlus?换其他的文本编辑工具看一下是什么效果! 把你生成xml的代码贴出来是doc.save还是用StreamWriter之类的写的?如果是后者你得注意编码 请教 深度克隆不继承接口且不使用序列化,如何做呢? 如何高效统计游戏下多个分区中新用户的并集? string类型在枚举中赋值无效 三层架构中接口实现的问题 windows服务启动后,如何获得当前路径 有什么书讲消息的吗 有没有老大知道T6格式的传真图怎么转成普通jpg等格式啊?! 关于POST登陆的问题 如何在鼠标点击mdi子窗口后,只关闭窗口而不处置窗口实例 集思广益--大家说说有什么好方法计算角度的偏差 ASP.NET控件不显示 是什么问题呢? 急~~~~ C#操作Excel的问题
<document Name='行政事业性收费许可证'><正本><证号>202334</证号>这是中间的一段
<?xml version="1.0" encoding="utf-8: standalone="yes"?>
<?xml version="1.0" encoding="UTF-8" ?>
这都试过,都不行
<filelist>
<file filename="200502公共频道编辑线机房排班表.xls">
<filesize>15872字节</filesize>
<author>沈聪</author>
<uploadate>2006-02-23 16:59:36</uploadate>
<filepath>photo/200502公共频道编辑线机房排班表.xls</filepath>
</file>
<file filename="200510卫视编辑线机房排班表.xls">
<filesize>13824字节</filesize>
<author>沈聪</author>
<uploadate>2006-02-23 13:54:06</uploadate>
<filepath>photo/200510卫视编辑线机房排班表.xls</filepath>
</file>
<file filename="200511.xls">
<filesize>13824字节</filesize>
<author>沈聪</author>
<uploadate>2006-02-23 16:52:18</uploadate>
<filepath>photo/200511.xls</filepath>
</file>
<file filename="200512.xls">
<filesize>13824字节</filesize>
<author>沈聪</author>
<uploadate>2006-02-23 16:53:06</uploadate>
<filepath>photo/200512.xls</filepath>
</file>
<file filename="200511卫视编辑线机房排班表.xls">
<filesize>10752字节</filesize>
<author>沈聪</author>
<uploadate>2006-02-23 16:55:02</uploadate>
<filepath>photo/200511卫视编辑线机房排班表.xls</filepath>
</file>
<file filename="200508卫视编辑线机房排班表.xls">
<filesize>13824字节</filesize>
<author>沈聪</author>
<uploadate>2006-02-23 16:59:54</uploadate>
<filepath>photo/200508卫视编辑线机房排班表.xls</filepath>
</file>
</filelist>
换其他的文本编辑工具看一下是什么效果!
是doc.save还是用StreamWriter之类的写的?
如果是后者你得注意编码