问题描述
我正在使用plistlib在OS X中创建和更新一个简单的plist文件.挪威的测试人员从plistlib中得到一个错误:
I'm using plistlib to create and update a simple plist file in OS X. A tester in Norway is getting an error from plistlib:
File "../axeomatic2/normal/build/pyi.darwin/aomDSP/out03-PYZ.pyz/plistlib", line 406, in parse
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 8
看看他的系统上生成的plist文件,我看到这样的字段穿插着预期的条目:
Looking at the plist file that was generated on his system, I see fields like this interspersed with the expected entries:
NSTableView Sort Ordering Array
...
NSTableView Hidden Columns Array
...
NSTableView Columns Array
...
NSNavLastRootDirectory Array
如果我从他的系统中给他一个plist,它就可以正常工作,但是只要程序决定需要从头开始创建一个plist,就会出现错误.
If I give him a plist from my system it works fine, but any time the program decides it needs to create one from scratch it gets an error.
我认为这可能是编码问题,但是我们都在OS X 10.7上,并且都在使用OS X版本的UTF-8.
I thought perhaps it was an encoding problem, but we're both on OS X 10.7 and both using the OS X version of UTF-8.
关于可能发生的事情或如何进行远程故障排除的任何想法吗?
Any ideas as to what might be happening, or how I might troubleshoot this remotely?
推荐答案
在尝试之后,我遇到了类似的问题biplist ,它已解决.
这篇关于可可值入侵的python plistlib文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!