git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Chinese characters are garbled, setting utf-8 is also garbled

From
Nicholas Hsiang <xianghongai@gmail.com>
Date
Aug 2, 2020, 04:17 UTC
Message-ID
<CAEcaDL=DOn8d=L0Db41o--vOzjSzxVxsDTX9poXHTHHwBV0SCQ@mail.gmail.com>
In-Reply-To
<20200802012802.GK6540@camp.crustytoothpaste.net>

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写道:
Show 37 quoted lines
>
> 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.
Previous: brian m. carlson
Message 3 of 3 in “Chinese characters are garbled, setting utf-8 is also garbled”
  1. Nicholas HsiangAug 1, 2020
  2. brian m. carlsonAug 2, 2020
  3. Nicholas HsiangAug 2, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.