Git Shell in Windows: patch's default character encoding is UCS-2 Little Endian - how to change this to ANSI or UTF-8 without BOM?
Posted
by
Sk8erPeter
on Server Fault
See other posts from Server Fault
or by Sk8erPeter
Published on 2012-12-01T22:33:37Z
Indexed on
2012/12/01
23:06 UTC
Read the original article
Hit count: 275
When creating a diff patch with Git Shell in Windows (when using GitHub for Windows), the character encoding of the patch will be UCS-2 Little Endian according to Notepad++ (see the screenshots below).
How can I change this behavior, and force git to create patches with ANSI or UTF-8 without BOM character encoding?
It causes a problem because UCS-2 Little Endian encoded patches can not be applied, I have to manually convert it to ANSI.
© Server Fault or respective owner