Unable to create a file with foreign language characters

That looks like Eclipse.

  1. Cut the whole contents of the file into the clipboard.
  2. Save the (now empty) properties file.
  3. Change the encoding settings of the file (Alt+Enter) to be UTF-8 or whatever you need.
  4. Paste the clipboard into the editor.
  5. Save the editor.

I presume its eclipse:

  1. Go to Windows Menu –> Preferences –> General (expand it) –> Workspace (click on it)
  2. Look for a box “Text File Encoding”. Default will be “Cp1252″.
  3. Change radio to select other and select “UTF-8″ from combo box.

Assuming it is in Eclipse, easiest way is to choose Save as UTF-8 option present in the error dialog box.

enter image description here

The other answers work well too.