# Forcing encoding for "git commit"

1 messages from 2008-11-11 to 2008-11-11. Participants: Constantine Plotnikov.
Thread: https://gitlist.dev/t/16273

## Constantine Plotnikov, 2008-11-11 17:10

Subject: Forcing encoding for "git commit"
Message-ID: <85647ef50811110910p7b40fd5dhcd79f8ae38709b95@mail.gmail.com>
URL: https://gitlist.dev/e/85647ef50811110910p7b40fd5dhcd79f8ae38709b95%40mail.gmail.com

```
I would like to see a possibility to force encoding for the "git
commit" command. Currently only way to change encoding used by "git
commit" is to set "i18n.commitencoding" configuration variable. But
there is no way to override this variable for the specific commit like
it is possible for "show" and "log" commands.

This would be useful when git is invoked from the tools. Currently
tools have to query configuration variable and to encode message
according to the value of the variable. And it might happen that not
all characters produced by tool are supported by target encoding.
Forcing the encoding, would have allowed the tool use the suitable
encoding without changing user preferences.

Regards,
Constantine

```
