default configuration does not support Chinese named file listing with ls
OS:Windows10
Cmder:1.3.0-pre

set LANG=zh_CN.UTF-8.I found this way by watching mingw64 _ENV_ variables.
Heier:
Thank you.
I have do this as you say
but it doesn't work
i try another way
On Tue, Jun 21, 2016 at 5:27 PM, Heier [email protected] wrote:
- Press Win+Alt+p to open _settings_;
- Search key worrd _Environment_;
- Add the text set LANG=zh_CN.UTF-8.
I found this way by watching mingw64 _ENV_ variables.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cmderdev/cmder/issues/985#issuecomment-227387888, or mute
the thread
https://github.com/notifications/unsubscribe/AH8v3EydxGUYSbnAGpkLPofscYBFouUyks5qN66UgaJpZM4IwnFi
.
Works for me! Thanks @Heier2013
I have set up a set of LANG = zh_CN. Utf-8,use ls can see normal file name, but the file path can't display properly.
Another problem is the first time open cmder client And switch the file path will go wrong
screenshot
OS:win7 x64
cmder:1.3.0
@Heier2013 @jimmy-yao
@codesboy
my envirionment: cmder_mini 1.3.0, windows 10
@codesboy #1070 this can fix the file path problem
perfect,It works.Thankyou.
@janschulz @jing2si
I have the same problem,and Add the text set LANG=zh_CN.UTF-8.,but it doesn't work.
How can i solve the problem?
@Michael728 You need this #1070
@codesboy I don't think so: ls is (usually) from the git-for-windows package. #1070 only fixes the garbled unicode letters in the current working dir (in the line before the lambda prompt -> the D:\ in the above screenshot).
It would help to see where the error comes from:
where ls.exe to get the full path to ls.exe-> if the same error happens than ls.exe is the problem
Then try in the same cmd window set LANG=zh_CN.UTF-8 and reexecute the ls call. If that works, then you can add the set ... call to <cmder>\config\user-profile.cmd or use https://github.com/cmderdev/cmder/issues/985#issuecomment-227387888 but do not use set LANG=zh_CN.UTF-8 but only LANG=zh_CN.UTF-8 (without the set)
Just for the record, the locale set LANG=en-GB.UTF-8 or en-US.UTF-8 both didn't work for me as there don't seem to be any locales installed here. But set LANG=C.UTF-8 brought the desired effect and made umlauts appear in e.g. the ls command.
It works for me by using set LANG=zh_CN.utf8.
@jimmy-yao @mbirth @jdhao the best way to solve this problem is to modify the file (\Cmder\vendor\conemu-maximus5\ConEmu) ,search the keyword "EnvironmentSet" and add a new line:
<value name="EnvironmentSet" type="multi">
<line data="set PATH=%ConEmuBaseDir%\Scripts;%PATH%"/>
<line data="set LANG=zh_CN.UTF-8"/>
</value>
@chjiyun doing the same in the settings is a bit more convenient:

Most helpful comment
set LANG=zh_CN.UTF-8.I found this way by watching mingw64 _ENV_ variables.