“if you can&#x27;t define what files have what encoding” — I can, but not by name or extension. See this:
<a href="http:&#x2F;&#x2F;unicode.org&#x2F;faq&#x2F;utf_bom.html#bom1" rel="nofollow">http:&#x2F;&#x2F;unicode.org&#x2F;faq&#x2F;utf_bom.html#bom1</a><p>“you can do is apply the binary filter I posted to all files and write a script” — yes, I know git is open source and very flexible. But Unicode is 20 years old standard widely accepted by the industry. Git should support Unicode out of the box, without my custom scripts.