Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"chcp 65001" (UTF-8) support for cmd #119

Closed
pihug12 opened this issue Jan 18, 2014 · 6 comments
Closed

"chcp 65001" (UTF-8) support for cmd #119

pihug12 opened this issue Jan 18, 2014 · 6 comments

Comments

@pihug12
Copy link

pihug12 commented Jan 18, 2014

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

@samvasko
Copy link
Contributor

Hey, try add @ before like chcp 65001. It will disable the echo

@pihug12
Copy link
Author

pihug12 commented Jan 18, 2014

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.

@pihug12 pihug12 closed this as completed Jan 18, 2014
@JMLX42
Copy link

JMLX42 commented May 4, 2016

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...

@jankatins
Copy link
Contributor

jankatins commented May 4, 2016

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

@david-learner
Copy link

@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
177

It works good.

@chabinot
Copy link

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 |-®

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants