Eclipse terminal / shell output encoding
I'm using Eclipse under Windows 7, but I need Bash to get done any serious work so I have Cygwin installed. I'm running Bash in mintty alongside Eclipse, but using bash_completion slows it down and it's "yet another window open" in my work environment, so it's cumbersome to use.
Lately however I've found out that I can start an SSH session inside Eclipse, hence I've set up an SSH server under Cygwin and I'm connecting to it from Eclipse.
It's working very well... except the character encoding sucks and I can't seem to be configure it.
By sucks I mean: in mintty non-ASCII characters are displayed correctly, in the SSH session in Eclipse they do not, so it is an encoding issue inside Eclipse.
Any idea how can I configure this?
I've tried the following: set every possible encoding options 开发者_高级运维in Eclipse to UTF-8; in eclipse.ini I've passed the following JVM arguments to Eclipse.
-vmargs
-Duser.language=en
-Duser.country=US
-Dfile.encoding=UTF-8
Nothing changed.
When using Remote System Explorer you can create connections in the Remote System Details view. If you look at the properties of the connection, the Host tab allows you to set the default encoding used by that connection.
- Open the "Remote" View (Window ↦ Show View ↦ Remote)
- Right click on the Connection where you want to setup the charset
- Choose "Properties" and open in the appearing Window the Part "More Options"
- Choose your encoding.
You're done.
精彩评论