迷茫2017-05-02 09:38:14
The final solution is to add the following code in user-level configuration
vi ~/.gitconfig
1 [i18n]
2 commitencoding = utf-8
3 logoutputencoding = utf-8
4 [gui]
5 encoding = utf-8
6 [core]
7 quotepath = false
某草草2017-05-02 09:38:14
I input the first few bytes of the first sentence on the screenshot into a text file using a hexadecimal editor, and the result is "Add sub-DOM" encoded in GB 2312...
How many years has Unicode been born? As a programmer, why don’t you use UTF-8, which is universal and universal for all platforms? Using GB 2312 on Linux/BSD/macOS where the default encoding is UTF-8 will cause a lot of unnecessary trouble.