DisposaBoy / GoSublime

A Golang plugin collection for SublimeText 3, providing code completion and other IDE-like features.
MIT License
3.42k stars 302 forks source link

Chinese character in GoSublime-console's output is wrong decoding #550

Closed rzhb closed 5 years ago

rzhb commented 10 years ago

OS: win7 OS language: Chinese

In the GoSublime-console

(PressCtrl+9),input a wrong command like #,I got this: image

This is because the cmd.exe default encoding is GBK, I have a way to fix. run chcp 65001 in the GoSublime-console and the code page of the console will change to utf-8. This time the wrong command (like #) will get this: image

I don't know how to do this automatically. Please help with this or try another way to fix this problem.

nathany commented 10 years ago

Sublime Text 2 or 3? They have very different versions of Python, with different Unicode support.

rzhb commented 10 years ago

Sublime Text 3