QUOTE:
原帖由 bs 于 2007-1-25 16:52 发表
#coding=utf-8
#coding=utf-8
>>> from xml.dom import minidom
>>> xmldoc = minidom.parse('c:\\aa.XML')
Traceback (most recent call last):
File "<pyshell#2>", line 1, in -toplevel-
xmldoc = minidom.parse('c:\\aa.XML')
File "C:\Python24\lib\xml\dom\minidom.py", line 1915, in parse
return expatbuilder.parse(file)
File "C:\Python24\lib\xml\dom\expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
File "C:\Python24\lib\xml\dom\expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
ExpatError: unknown encoding: line 1, column 30
>>>
我这样写了,还是无法解释,能不能给修正一下