Skip to main content
 首页 » 编程设计

eclipse之无法创建带有外语字符的文件

2025年02月15日30mq0036

尝试使用外语字符保存属性文件(包含名称/值对)时,出现以下错误。如何设置编码?

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.

请您参考如下方法:

看起来像Eclipse。

  • 将文件的全部内容剪切到剪贴板中。
  • 保存(现在为空)属性文件。
  • 将文件的编码设置(Alt + Enter)更改为UTF-8或您需要的任何格式。
  • 将剪贴板粘贴到编辑器中。
  • 保存编辑器。