{"thread":{"id":"53959","subject":"Chinese characters are garbled, setting utf-8 is also garbled","startedAt":"2020-08-01T04:37:07Z","lastAt":"2020-08-02T04:17:51Z","messageCount":3,"participants":["Nicholas Hsiang","brian m. carlson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"402617","messageId":"CAEcaDL=BrqFf7bwJ0cVWK-+vUKLmuihhKr8m0_w2CCSNfA9LEw@mail.gmail.com","threadId":"53959","inReplyTo":null,"subject":"Chinese characters are garbled, setting utf-8 is also garbled","fromName":"Nicholas Hsiang","fromEmail":"xianghongai@gmail.com","sentAt":"2020-08-01T04:36:50Z","receivedAt":"2020-08-01T04:37:07Z","isPatch":false,"sender":{"key":"xianghongai@gmail.com","avatar":"https://gravatar.com/avatar/f8a671d542a136698f6db0e337e5aa849ad8d797c5721b3eb2c8c816499f724a?d=mp&s=160"},"body":"Hi,\n\nThere are some problems here.\n\nI have configured the character encoding in .gitconfig:\n\n```yaml\n[core]\n  quotepath = false\n[gui]\n  encoding = utf-8\n[i18n]\n  commitencoding = utf-8\n  logoutputencoding = utf-8\n```\n\nand Git Bash configed: Options > Text > Locale: zh_CN, Character set: UTF-8\n\nHowever, when executing `git pull/reset/status`, Chinese characters\nstill appeared garbled.\n\n```bash\nXiang@Xiang MINGW64 /c/me/front-end-note (master)\n$ git reset --hard df576e2\nHEAD is now at df576e2 doc: 琛ュ厖 ES5 缁ф壙\n```\n\n`git pull`:\n\n```bash\nXiang@Xiang MINGW64 /c/me/front-end-note (master)\n$ git pull\nUpdating df576e2..bd2894b\nFast-forward\n AngularJS/assets/AngularJS-Component-LifeCycle.png | Bin 0 -> 154433 bytes\n AngularJS/chapter/Components.md                    |   2 +\n AngularJS/chapter/Scopes.md                        |  18 ++-\n ESLint.md                                          | 118 ++++++++++++++\n NPM.md                                             | 173 +++++++++++++--------\n React/Context.md                                   |   3 +\n React/Refs.md                                      |  47 ++++++\n React/react-architecture.png                       | Bin 0 -> 56624 bytes\n React/react-lifecycle-methods-diagram.png          | Bin 0 -> 41677 bytes\n React/鍗忚皟.md                                    |  33 ++++\n i18n 瑙ｅ喅鏂规.md                               |  76 +++++++++\n 浠ｇ爜鐩綍鏂囦欢缁撴瀯.md                        |  15 ++\n 娣卞叆鐞嗚ВES6/9.JavaScript涓殑绫?md           |  13 +-\n 13 files changed, 426 insertions(+), 72 deletions(-)\n create mode 100644 AngularJS/assets/AngularJS-Component-LifeCycle.png\n create mode 100644 ESLint.md\n create mode 100644 React/Context.md\n create mode 100644 React/Refs.md\n create mode 100644 React/react-architecture.png\n create mode 100644 React/react-lifecycle-methods-diagram.png\n create mode 100644 React/鍗忚皟.md\n create mode 100644 i18n 瑙ｅ喅鏂规.md\n create mode 100644 浠ｇ爜鐩綍鏂囦欢缁撴瀯.md\n```\n\n`git status`:\n\n```bash\nXiang@Xiang MINGW64 /c/me/front-end-note (master)\n$ git status\nOn branch master\nYour branch is up to date with 'origin/master'.\n\nChanges not staged for commit:\n  (use \"git add <file>...\" to update what will be committed)\n  (use \"git restore <file>...\" to discard changes in working directory)\n        modified:   浜夎涓庢帰绱?md\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n```\n\n`git log` command is correct:\n\n```bash\nXiang@Xiang MINGW64 /c/me/front-end-note (master)\n$ git log --oneline -3\nbd2894b (HEAD -> master, origin/master) i18n\n73dceea 代码目录文件结构\n89121aa 更新 NPM\n```\n\nMy environment:\n\n- windows 10 home chinese edition\n- git version 2.28.0.windows.1\n\nThis problem did not appear in the previous version, and we look\nforward to fixing it.\n\nThanks\n\nXiang 2020/8/1\n-- \nLive Long and Prosper.\n"},{"id":"402633","messageId":"20200802012802.GK6540@camp.crustytoothpaste.net","threadId":"53959","inReplyTo":"CAEcaDL=BrqFf7bwJ0cVWK-+vUKLmuihhKr8m0_w2CCSNfA9LEw@mail.gmail.com","subject":"Re: Chinese characters are garbled, setting utf-8 is also garbled","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2020-08-02T01:28:02Z","receivedAt":"2020-08-02T01:28:13Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On 2020-08-01 at 04:36:50, Nicholas Hsiang wrote:\n> Hi,\n> \n> There are some problems here.\n> \n> I have configured the character encoding in .gitconfig:\n> \n> ```yaml\n> [core]\n>   quotepath = false\n> [gui]\n>   encoding = utf-8\n> [i18n]\n>   commitencoding = utf-8\n>   logoutputencoding = utf-8\n> ```\n> \n> and Git Bash configed: Options > Text > Locale: zh_CN, Character set: UTF-8\n> \n> However, when executing `git pull/reset/status`, Chinese characters\n> still appeared garbled.\n> \n> ```bash\n> Xiang@Xiang MINGW64 /c/me/front-end-note (master)\n> $ git reset --hard df576e2\n> HEAD is now at df576e2 doc: 琛ュ厖 ES5 缁ф壙\n> ```\n\nSince this is a Windows issue, you'd be better off reporting this at the\nGit for Windows issue tracker at\nhttps://github.com/git-for-windows/git/issues/.  As far as what I've\nseen in your email, the characters do appear to be in Chinese, although\nsince I don't speak or read that language, I don't know whether they\nmake any sense or are garbled.\n-- \nbrian m. carlson: Houston, Texas, US\n"},{"id":"402638","messageId":"CAEcaDL=DOn8d=L0Db41o--vOzjSzxVxsDTX9poXHTHHwBV0SCQ@mail.gmail.com","threadId":"53959","inReplyTo":"20200802012802.GK6540@camp.crustytoothpaste.net","subject":"Re: Chinese characters are garbled, setting utf-8 is also garbled","fromName":"Nicholas Hsiang","fromEmail":"xianghongai@gmail.com","sentAt":"2020-08-02T04:17:37Z","receivedAt":"2020-08-02T04:17:51Z","isPatch":false,"sender":{"key":"xianghongai@gmail.com","avatar":"https://gravatar.com/avatar/f8a671d542a136698f6db0e337e5aa849ad8d797c5721b3eb2c8c816499f724a?d=mp&s=160"},"body":"I submit an issue with them, Thanks for the tip!\n:)\n--\nxiang hong ai: ChangSha, HuNan, CN\n\nbrian m. carlson <sandals@crustytoothpaste.net> 于2020年8月2日周日 上午9:28写道：\n>\n> On 2020-08-01 at 04:36:50, Nicholas Hsiang wrote:\n> > Hi,\n> >\n> > There are some problems here.\n> >\n> > I have configured the character encoding in .gitconfig:\n> >\n> > ```yaml\n> > [core]\n> >   quotepath = false\n> > [gui]\n> >   encoding = utf-8\n> > [i18n]\n> >   commitencoding = utf-8\n> >   logoutputencoding = utf-8\n> > ```\n> >\n> > and Git Bash configed: Options > Text > Locale: zh_CN, Character set: UTF-8\n> >\n> > However, when executing `git pull/reset/status`, Chinese characters\n> > still appeared garbled.\n> >\n> > ```bash\n> > Xiang@Xiang MINGW64 /c/me/front-end-note (master)\n> > $ git reset --hard df576e2\n> > HEAD is now at df576e2 doc: 琛ュ厖 ES5 缁ф壙\n> > ```\n>\n> Since this is a Windows issue, you'd be better off reporting this at the\n> Git for Windows issue tracker at\n> https://github.com/git-for-windows/git/issues/.  As far as what I've\n> seen in your email, the characters do appear to be in Chinese, although\n> since I don't speak or read that language, I don't know whether they\n> make any sense or are garbled.\n> --\n> brian m. carlson: Houston, Texas, US\n\n\n\n-- \nLive Long and Prosper.\n"}]}