Git 實戰技巧 - 使用 git diff 比對 UTF-16/BIG5 文字檔 2021-05-18 09:09 PM 6 4,241 同事遇到的茶包。 git diff 時某文字檔被當成二進位檔案無法顯示差異,後來發現是 Unicode 編碼(UTF-16 LE with BOM/UCS-2 LE with BOM)造成,用以下範例重現: type a.txt 可檢視文字內容,但 git diff 比對時卻出現 "Bi...