0

commit source code into git repository with emacs vc-mode. I used Chinese characters to write commit message. and push the changeset into github then all of the Chinese characters changed to be irrecognizable

enter image description here

↓↓↓↓↓↓After push into github↓↓↓↓↓↓↓

enter image description here

luozengbin
  • 305
  • 2
  • 11

1 Answers1

2

VC does not know what particular backends use for character encodings (yes, that's a bug in VC for those backends which do specify that the encoding has to be utf-8), so it probably encoded your comment using your locale's favorite encoding (say big5) insead of using github's expected utf-8 (or so I guess).

Stefan
  • 27,908
  • 4
  • 53
  • 82