源景 2016-09-21 05:57 采纳率: 0%
浏览 2168
已结题

如何设置git format-patch 生成的文件的charactset=utf8

在ubuntu系统下, 使用git format-patch -M -1 commit_id生成的patch文件的中文是乱码
然后用file -ib 查看生成的patch文件:
text/x-diff; charset=unknow-8bit

问: 如何让生成的patch文件是
text/x-diff; charset=utf-8

那个大神指点指点

非常感谢

  • 写回答

2条回答 默认 最新

  • 鱼弦 全栈领域优质创作者 2016-09-21 06:46
    关注
    评论

报告相同问题?