当我尝试使用扩展ascii中的字符在eclipse中保存.java文件时,例如█,它返回以下错误
Save could not be completed. Try File >Save as if the problem persists
Reason:
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.
我可以在对话框中选择将文件保存为UTF-8。如果我这样做,eclipse会继续正确编译吗?或者我可能会引入错误吗?
答案 0 :(得分:2)
使用unicode,而不是扩展ascii。
http://en.wikipedia.org/wiki/List_of_Unicode_characters#Block_elements列出了ASCiiesque块字符。