13

I recently switched to using a Git repository within Eclipse (Juno SR2), using EGit. In our project, some file names contains umlauts and other special non-ASCII-characters. On the command line, git status show no changes, workspace clean, but Eclipse marks those files as changed:enter image description here

How can I make Eclipse/EGit use the correct encoding for filenames? I tried setting LANG, file.encoding and the git config svn.pathnameencoding all to no avail. And again, on the command line there are no such errors.

4
  • 6
    Did you try setting the workspace encoding to UTF-8? Or whatever the file name encoding is like? On which OS are you working? Aug 5, 2013 at 6:42
  • 2
    Did you set any encoding In Window -> Preferences ->General->Content types ? Did you close and then reopen the file after changing the encoding in Window -> Preferences -> Workspace -> Text file encoding ?
    – user265153
    Oct 20, 2013 at 1:52
  • 1
    What operating system? Nov 19, 2013 at 22:17
  • Which encoding are you trying to use?
    – SamB
    Jan 21, 2014 at 1:41

1 Answer 1

1

Try installing Aptana Git. I prefer that one.

Help > Install New Software > Aptana Studio - http://download.aptana.com/studio3/plugin/install

It will actually install a great deal of plugins, mostly for web development, but I don't see a way to install the Git plugin separately.

Then go to your project > Navigator > Project > Right Click > Team > Disconnect > Right Click > Team > Share Project > Aptana Git > Next > Finish

This is what the commit screen looks like:

Imgur

6
  • 1
    This is indeed a funny answer: If your plugin for the IDE you are using is not working, choose another IDE. BTW: There are people which are using Eclipse for other Development - Tasks rather then Web /JS/ HTML. ;)
    – Peter
    Jan 8, 2014 at 21:05
  • @Peter Glad I could entertain. However, it's a different plugin, not a different IDE.
    – Chloe
    Jan 8, 2014 at 22:08
  • So it's integrating good with Eclipse rather then the Aptana Studio which was build on top of Eclipse? And supports latest versions of Eclipse? This questions arise to me when using plugins of Vendors maintaining their own Eclipse - based IDE.
    – Peter
    Jan 8, 2014 at 22:19
  • @Peter Yes Aptana is just another plugin. I'm using latest Eclipse (at the time) Kepler. You can download entire Eclipse from vendors with the plugins pre-installed or vanilla Eclipse and install them manually (which is what I did after Android Developer Kit flaked out and I had to re-install).
    – Chloe
    Jan 8, 2014 at 22:28
  • Okay, because I used Aptana Studio standanlone a year ago and wasn't too satisfied because some of the capabilities related to JS weren't as sophisticated as in Netbeans, e.g..
    – Peter
    Jan 8, 2014 at 22:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .