I wanted to view an old version of a file, so I ran
git show <commit-sha>:example.less > temp.less
to export the old version as temp.less. But the exported file ends up having UTF-16 encoding (even thought example.less is UTF-8 encoded).
I tried --encoding=utf-8 and --encoding=utf8 but neither worked. Besides, I would like to set this in my gitconfig if possible rather than typing it out each time.
Windows 10
Git 2.15.0.windows.1