Use "chcp 65001" can change the current code page of windows console to UTF-8. To change this in emacs when "M-x shell" starts, you need to add a ~/.emacs_shellname(in the same directory of your .emacs file) containing the "chcp 65001" command.
But note that, the shellname in Windows is cmdproxy.exe, so your ~/.emacs-shellname should be ~/.emacs-cmdproxy.exe (if this is not working, try "echo %SHELL%" in emacs shell).
But note that, the shellname in Windows is cmdproxy.exe, so your ~/.emacs-shellname should be ~/.emacs-cmdproxy.exe (if this is not working, try "echo %SHELL%" in emacs shell).
Comments