Hello!
What's the proper way to support UTF-8 in cmd with cmder?
Executing chcp 65001 works well. I tried to add it in _/vendor/init.bat_ but is shows up every time I open a new tab.
Here is some links :
Thanks
Hey, try add @ before like chcp 65001. It will disable the echo
I added these two lines at the end of _/vendor/init.bat_ :
@chcp 65001 > nul
@set PYTHONIOENCODING=utf-8
The Python 2.7 interpreter launched from cmd works correctly now.
Just ran into the same problem and searched for hours...
Maybe that should be in /vendor/init.bat by default? But I don't know...
I have that in my user startup file, too, but there are sometimes problems: the worst is more:
位 which more
C:\Windows\System32\more.com
位 more
Nicht gen眉gend Arbeitsspeicher. # Not enough free RAM
位 echo "hello" | more
Nicht gen眉gend Arbeitsspeicher.
I had some fun until I found out what it was: https://github.com/tj/git-extras/blob/master/install.cmd#L13
@samvasko Thank you!
I need to set UTF-8 on intellij console using cmder.
So added @set LANG=ko_KR.UTF-8 in /vendor/init.bat

It works good.
Hello,
I do the same, but i replace ko_KR by fr_FR as follows 馃憤
`echo :: use in front of the command to prevent printing the command
echo.
echo :: uncomment this to have the ssh agent load when cmder starts
echo :: call "%%GIT_INSTALL_ROOT%%/cmd/start-ssh-agent.cmd"
echo.
echo :: uncomment this next two lines to use pageant as the ssh authentication agent
echo :: SET SSH_AUTH_SOCK=/tmp/.ssh-pageant-auth-sock
echo :: call "%%GIT_INSTALL_ROOT%%/cmd/start-ssh-pageant.cmd"
echo.
echo :: you can add your plugins to the cmder path like so
echo :: set "PATH=%%CMDER_ROOT%%\vendor\whatever;%%PATH%%"
echo.
) > "%CMDER_ROOT%\config\user-profile.cmd"
)
@set LANG=fr_FR.UTF-8
exit /b'
It seems not working, the character "茅" becomes |-®
Most helpful comment
I added these two lines at the end of _/vendor/init.bat_ :
The Python 2.7 interpreter launched from cmd works correctly now.