views:

18

answers:

1

I get the following error, when trying to save a properties file (containing name/value pairs) with foreign language characters. How do I set the encoding

Save could not be completed. Some characters cannot be mapped using "Cp1252" character encoding. Either change the encoding or remove the characters which are not supported by the "Cp1252" character encoding.
+1  A: 

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.
Roland Illig
thanks, it worked
Joshua