gitgnupggpg-signaturegpg-agent

Why are there special symbols on git's gpg-signed commits


Whenever I use my gpg key to sign commits I always get these weird symbols in the commit's signature.

$ git log --show-signature
commit 16d7a1f5403ca0332146da7bcfe4594f6d997c2b (HEAD -> master)
gpg: Signature made 07/03/2021 22:47:48 <F3><F1><E2><EF> <F4><E2><F9><EC> <EC><F8><E1><F9><EC><E1><ED>^M
gpg:                using EDDSA key redacted^M
gpg: Good signature from "redacted" [ultimate]^M
Author: redacted
Date:   Sun Mar 7 22:47:48 2021

I suspected this has something to do with gpg's or git's encoding so I added the LC_ALL=C.UTF-8 environment variable and tried a few changes to git's config with no success.

Anyone knows what are these symbols and how do I get rid of them?


Gpg v2.2.27

Windows 10 v20H2

Git v2.30.1


Solution

  • I got rid of the special symbols by going to region settings in windows setting and ticking the "Beta: Use Unicode UTF-8 for worldwide language support" Checkbox.

    Screenshot of region settings