search

Home  >  Q&A  >  body text

macos - This happens in git log under mac

天蓬老师天蓬老师2844 days ago563

reply all(2)I'll reply

  • 迷茫

    迷茫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
    

    reply
    0
  • 某草草

    某草草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.

    reply
    0
  • Cancelreply