GPG 似乎支持 Unicode,但我无法让它实际工作
\n\n% gpg --utf8-strings --display-charset utf-8 --edit-key king@example.com\ngpg (GnuPG) 1.4.15; Copyright (C) 2013 Free Software Foundation, Inc.\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n\ngpg: key xxxxxxxx: duplicated user ID detected - merged\nSecret key is available.\n\ngpg: checking the trustdb\ngpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model\ngpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u\npub 4096R/xxxxxxxx created: 2014-02-20 expires: never usage: SC\n trust: ultimate validity: ultimate\nsub 4096R/xxxxxxxx created: 2014-02-20 expires: never usage: E\n[ultimate] (1). King George \\xe2\\xa3\\x20<king@example.com>\n\ngpg> uid\n\npub 4096R/xxxxxxxx created: 2014-02-20 expires: never usage: SC\n trust: ultimate validity: ultimate\nsub 4096R/xxxxxxxx created: 2014-02-20 expires: never usage: E\n[ultimate] (1). King George \\xe2\\xa3\\x20<king@example.com>\n\ngpg> adduid\nReal name: King George \xe2\x85\xa3 ### I type this.\nEmail address: king@example.com\nComment:\nYou are using the `utf-8\' character set.\nYou selected this USER-ID:\n "King George \xef\xbf\xbd <king@example.com>" ### Terminal notes corruption.\n\nChange (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O\n\nYou need a passphrase to unlock the secret key for\nuser: "King George \\xe2\\xa3\\x20<king@example.com>"\n4096-bit RSA key, ID xxxxxxxx, created 2014-02-20\n\n\npub 4096R/xxxxxxxx created: 2014-02-20 expires: never usage: SC\n trust: ultimate validity: ultimate\nsub 4096R/xxxxxxxx created: 2014-02-20 expires: never usage: E\n[ultimate] (1) King George \\xe2\\xa3\\x20<king@example.com>\n[ultimate] (2). King George \\xe2\\xa3\\x20<king@example.com> ### That\'s not correct UTF-8.\nRun Code Online (Sandbox Code Playgroud)\n\nLANG=en_US.UTF-8请注意底部:UTF-8 序列不正确,但很接近!应该存在的三字节序列的中间八位字节丢失了。我怀疑我能做些什么来导致中间八位位组下降,那么这里发生了什么?
\n