GIT only handles text files correctly if they are encoded in UTF-8, everything else is treated as a binary file which prevents maintainers to easily use the DIFF tolls available in github.
Every since XX, git as working-tree-encoding which allows git to properly handle UTF-16 files, including the diff tools.
The link to the official documentation.