Git and PowerShell and German umlauts

I struggled with an attempt to teach msysgithow to deal with German umlauts (ä ö ü), for example. comment on the comments. Bad luck.....

So I decided to try using git integration (PoshGit) instead of PowerShell. But again - no luck:

D:\temp\test [ +12 ~0 -0 !]> git add --all

D:\temp\test [ +12 ~0 -0]> git commit -m "Einige Dateien hinzugefügt"
  Warning: commit message does not conform to UTF-8.
  You may want to amend it after fixing the message, or set the config
  variable i18n.commitencoding to the encoding your project uses.
  [master (root-commit) 085b7d6] Einige Dateien hinzugef?gt
     12 files changed, 3320 insertions(+), 0 deletions(-)

("Einige Dateien hinzugefügt" = some files added)

Interesting - I could swear that the German umlauts are part of the UTF-8 standard ..... hmm ......

And of course:

D:\temp\test [master]> git log

  085b7d6 (HEAD, master) Einige Dateien hinzugef<FC>gt [Marc Scheuner] [4 seconds ago]

No bananas :-(

WHAT ON THE GROUND do I need to do to either msysgit("Git bash") or PowerShell interact with git in commit comments? I don’t even ask to support file names using Umlauts ... just comments (plain text) at the moment .....

:

[i18n]
commitencoding = ISO-8859-1
logoutputencoding = ISO-8859-1

my .gitconfig git log....: - (

? ? ??

+5
5

Unicode- msysgit, . msysgit.

+1

MSysGit unicode, . , , , VritualBox Linux ( ) . , Git Linux, Windows. , ALT + TAB , MSysGit.

+1

( ). , Git Extensions , . :

 [i18n]
 commitencoding = windows-1252
 logoutputencoding = Windows-1252
 filesEncoding = Windows-1252

powershell/ .

+1

$HOME/.gitconfig( Linux) % USERPROFILE% \. gitconfig ( Windows), - :

[user]
  name = Your Name
...

, ISO-8859-1 ( ASCII), UTF-8.

, .gitconfig UTF-8 .

0

git PUTTY. : PUTTY , : http://thegreyblog.blogspot.de/2009/08/configuring-putty-to-use-utf-8.html

, PUTTY UTF-8, .

BTW: : , .gitconfig.

0

All Articles