Unable to create a file with foreign language characters

后端 未结 5 1445
旧巷少年郎
旧巷少年郎 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 09:40

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

    The other answers work well too.

提交回复
热议问题