如果您的 Mac 電腦有 Chinese iPhones Won’t Show This Emoji 文中類似的問題,那麼這篇短文可以解決您的困惑。

首先打開 iTerm,或者其它終端(例如 macOS 內置的 Terminal)。進入到目錄 /Library/Preferences,並查看隱藏文件 .GlobalPreferences.plist 的類型:

cd /Library/Preferences

file .GlobalPreferences.plist

如果 .GlobalPreferences.plist 是 Apple binary property list 格式,則執行:

sudo plutil -convert xml1 .GlobalPreferences.plist

將文件中的 <Country>CN</Country><com.apple.AppleModemSettingTool.LastCountryCode>CN</com.apple.AppleModemSettingTool.LastCountryCode> 中的值 CN 修改成其它國家代碼,例如 US

如果希望將文件恢復成 Apple binary property list 格式,可以執行:

sudo plutil -convert binary1 .GlobalPreferences.plist

最後一步:重啟 macOS。