search

Home  >  Q&A  >  body text

ios - 请问命令行编码问题

命令行工具 : iterm

原来没问题的,用了一次类似cleandisk这种软件,就打不了中文了,pry-console也打不了中文。

git diff中文显示如下,

iterm的编码已经是UTF-8了还是不行,请问怎么处理?

PHP中文网PHP中文网2829 days ago716

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-17 13:32:10

    It has nothing to do with iterm. iterm will not split a character into encoding and display it. If the encoding is incorrect, it will directly display garbled characters

    There is a problem with your git settings

    git config --global i18n.commitencoding utf-8
    git config --global i18n.logoutputencoding utf-8
    

    reply
    0
  • Cancelreply