How to write chinese into plist
CodyGit opened this issue · 1 comments
CodyGit commented
How to write chinese into plist
wooster commented
This seems to just work if you're using Python 3:
>>> import biplist
>>> biplist.writePlistToString({"计算机":"软件"})
b'bplist00bybiplist1.0\xd1\x01\x02c\x8b\xa1{\x97g:b\x8foN\xf6\x14\x17\x1e\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00#'
>>> biplist.readPlistFromString(biplist.writePlistToString({"计算机":"软件"}))
{'计算机': '软件'}