git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Chinese characters are garbled, setting utf-8 is also garbled
@ 2020-08-01  4:36 Nicholas Hsiang
  2020-08-02  1:28 ` brian m. carlson
  0 siblings, 1 reply; 3+ messages in thread
From: Nicholas Hsiang @ 2020-08-01  4:36 UTC (permalink / raw)
  To: git

Hi,

There are some problems here.

I have configured the character encoding in .gitconfig:

```yaml
[core]
  quotepath = false
[gui]
  encoding = utf-8
[i18n]
  commitencoding = utf-8
  logoutputencoding = utf-8
```

and Git Bash configed: Options > Text > Locale: zh_CN, Character set: UTF-8

However, when executing `git pull/reset/status`, Chinese characters
still appeared garbled.

```bash
Xiang@Xiang MINGW64 /c/me/front-end-note (master)
$ git reset --hard df576e2
HEAD is now at df576e2 doc: 琛ュ厖 ES5 缁ф壙
```

`git pull`:

```bash
Xiang@Xiang MINGW64 /c/me/front-end-note (master)
$ git pull
Updating df576e2..bd2894b
Fast-forward
 AngularJS/assets/AngularJS-Component-LifeCycle.png | Bin 0 -> 154433 bytes
 AngularJS/chapter/Components.md                    |   2 +
 AngularJS/chapter/Scopes.md                        |  18 ++-
 ESLint.md                                          | 118 ++++++++++++++
 NPM.md                                             | 173 +++++++++++++--------
 React/Context.md                                   |   3 +
 React/Refs.md                                      |  47 ++++++
 React/react-architecture.png                       | Bin 0 -> 56624 bytes
 React/react-lifecycle-methods-diagram.png          | Bin 0 -> 41677 bytes
 React/鍗忚皟.md                                    |  33 ++++
 i18n 瑙e喅鏂规.md                               |  76 +++++++++
 浠g爜鐩綍鏂囦欢缁撴瀯.md                        |  15 ++
 娣卞叆鐞嗚ВES6/9.JavaScript涓殑绫?md           |  13 +-
 13 files changed, 426 insertions(+), 72 deletions(-)
 create mode 100644 AngularJS/assets/AngularJS-Component-LifeCycle.png
 create mode 100644 ESLint.md
 create mode 100644 React/Context.md
 create mode 100644 React/Refs.md
 create mode 100644 React/react-architecture.png
 create mode 100644 React/react-lifecycle-methods-diagram.png
 create mode 100644 React/鍗忚皟.md
 create mode 100644 i18n 瑙e喅鏂规.md
 create mode 100644 浠g爜鐩綍鏂囦欢缁撴瀯.md
```

`git status`:

```bash
Xiang@Xiang MINGW64 /c/me/front-end-note (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   浜夎涓庢帰绱?md

no changes added to commit (use "git add" and/or "git commit -a")
```

`git log` command is correct:

```bash
Xiang@Xiang MINGW64 /c/me/front-end-note (master)
$ git log --oneline -3
bd2894b (HEAD -> master, origin/master) i18n
73dceea 代码目录文件结构
89121aa 更新 NPM
```

My environment:

- windows 10 home chinese edition
- git version 2.28.0.windows.1

This problem did not appear in the previous version, and we look
forward to fixing it.

Thanks

Xiang 2020/8/1
-- 
Live Long and Prosper.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Chinese characters are garbled, setting utf-8 is also garbled
  2020-08-01  4:36 Chinese characters are garbled, setting utf-8 is also garbled Nicholas Hsiang
@ 2020-08-02  1:28 ` brian m. carlson
  2020-08-02  4:17   ` Nicholas Hsiang
  0 siblings, 1 reply; 3+ messages in thread
From: brian m. carlson @ 2020-08-02  1:28 UTC (permalink / raw)
  To: Nicholas Hsiang; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]

On 2020-08-01 at 04:36:50, Nicholas Hsiang wrote:
> Hi,
> 
> There are some problems here.
> 
> I have configured the character encoding in .gitconfig:
> 
> ```yaml
> [core]
>   quotepath = false
> [gui]
>   encoding = utf-8
> [i18n]
>   commitencoding = utf-8
>   logoutputencoding = utf-8
> ```
> 
> and Git Bash configed: Options > Text > Locale: zh_CN, Character set: UTF-8
> 
> However, when executing `git pull/reset/status`, Chinese characters
> still appeared garbled.
> 
> ```bash
> Xiang@Xiang MINGW64 /c/me/front-end-note (master)
> $ git reset --hard df576e2
> HEAD is now at df576e2 doc: 琛ュ厖 ES5 缁ф壙
> ```

Since this is a Windows issue, you'd be better off reporting this at the
Git for Windows issue tracker at
https://github.com/git-for-windows/git/issues/.  As far as what I've
seen in your email, the characters do appear to be in Chinese, although
since I don't speak or read that language, I don't know whether they
make any sense or are garbled.
-- 
brian m. carlson: Houston, Texas, US

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Chinese characters are garbled, setting utf-8 is also garbled
  2020-08-02  1:28 ` brian m. carlson
@ 2020-08-02  4:17   ` Nicholas Hsiang
  0 siblings, 0 replies; 3+ messages in thread
From: Nicholas Hsiang @ 2020-08-02  4:17 UTC (permalink / raw)
  To: brian m. carlson, Nicholas Hsiang, git

I submit an issue with them, Thanks for the tip!
:)
--
xiang hong ai: ChangSha, HuNan, CN

brian m. carlson <sandals@crustytoothpaste.net> 于2020年8月2日周日 上午9:28写道:
>
> On 2020-08-01 at 04:36:50, Nicholas Hsiang wrote:
> > Hi,
> >
> > There are some problems here.
> >
> > I have configured the character encoding in .gitconfig:
> >
> > ```yaml
> > [core]
> >   quotepath = false
> > [gui]
> >   encoding = utf-8
> > [i18n]
> >   commitencoding = utf-8
> >   logoutputencoding = utf-8
> > ```
> >
> > and Git Bash configed: Options > Text > Locale: zh_CN, Character set: UTF-8
> >
> > However, when executing `git pull/reset/status`, Chinese characters
> > still appeared garbled.
> >
> > ```bash
> > Xiang@Xiang MINGW64 /c/me/front-end-note (master)
> > $ git reset --hard df576e2
> > HEAD is now at df576e2 doc: 琛ュ厖 ES5 缁ф壙
> > ```
>
> Since this is a Windows issue, you'd be better off reporting this at the
> Git for Windows issue tracker at
> https://github.com/git-for-windows/git/issues/.  As far as what I've
> seen in your email, the characters do appear to be in Chinese, although
> since I don't speak or read that language, I don't know whether they
> make any sense or are garbled.
> --
> brian m. carlson: Houston, Texas, US



-- 
Live Long and Prosper.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-02  4:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-01  4:36 Chinese characters are garbled, setting utf-8 is also garbled Nicholas Hsiang
2020-08-02  1:28 ` brian m. carlson
2020-08-02  4:17   ` Nicholas Hsiang

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).