Unable to create a file with foreign language characters

后端 未结 5 1441
旧巷少年郎
旧巷少年郎 2020-12-17 09:35

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?

5条回答
  •  感情败类
    2020-12-17 10:06

    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.

提交回复
热议问题