Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to create a file with foreign language characters

Tags:

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.

like image 834
Joe Avatar asked Aug 30 '10 05:08

Joe


1 Answers

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.
like image 184
satya Avatar answered Sep 24 '22 06:09

satya