Support icon indicating copy to clipboard operation
Support copied to clipboard

How to modify the encoding?

Open sunyakun opened this issue 6 years ago • 3 comments

Lovely developer I'm looking for a good git GUI tool, when I find gitfiend, I am sure this is what I am looking for, but when I was in use there has a problem, I am from China, using the Windows 7 operating system, the system default encoding is GBK, while git default encoding is utf-8, so it show messy code when display git log. How should I do?

sunyakun avatar Oct 22 '19 06:10 sunyakun

Hi sunyakun,

This could be a bug in GitFiend as I haven't done testing on a Chinese version of Windows. I tried converting a file to GBK and didn't see the issue, so I will need to look into it further.

If you could provide a screenshot of the problem, that would help.

GitFiend avatar Oct 22 '19 10:10 GitFiend

Git configuration file can control the encoding of input and output. I modified the encoding of git through the following command to solve this problem

git config --global i18n.commitencoding utf-8
git config --global i18n. logoutputencoding GBK

I am sorry that I can't provide a screenshot, because my working environment is isolation from Internet.

sunyakun avatar Oct 23 '19 09:10 sunyakun

Thanks for this. I will see if there's a way to fix this so that others don't have the same problem.

GitFiend avatar Oct 24 '19 22:10 GitFiend