编辑 iPhone 通信录 .contacts 导出文档

问题

经过PP助手导出通信录,生成xxx.contacts文件,直接用Notepad++打开乱码app

解决方法

能够把xxx.contacts更名为xxx.contacts.zip,而后用WinRAR等解压缩工具打开,打开后里面有几个xxx.plist文件(从Contacts_0.plistContacts_7.plist)。姓名和号码分别在Contacts_0.plistContacts_2.plist中(能够直接用Notepad++打开):工具

Contacts_0.plistcode

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
    <string>SDMessageProcessChanges</string>
    <string>com.apple.Contacts</string>
    <dict>
        <key>10</key>
        <dict>
            <key>com.apple.syncservices.RecordEntityName</key>
            <string>com.apple.contacts.Contact</string>
            <key>display as company</key>
            <string>person</string>
            <key>last name</key>
            <string>刘校</string>
        </dict>
    </dict>
    <true/>
    <string>___EmptyParameterString___</string>
</array>
</plist>

Contacts_2.plistxml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
    <string>SDMessageProcessChanges</string>
    <string>com.apple.Contacts</string>
    <dict>
        <key>3/10/0</key>
        <dict>
            <key>value</key>
            <string>13300001111</string>
            <key>com.apple.syncservices.RecordEntityName</key>
            <string>com.apple.contacts.Phone Number</string>
            <key>type</key>
            <string>home</string>
            <key>contact</key>
            <array>
                <string>10</string>
            </array>
        </dict>
    </dict>
    <true/>
    <string>___EmptyParameterString___</string>
</array>
</plist>