Character incompatibility when importing Eclipse project
已回答
I just imported my project developed with Eclipse and I noticed my files are encoded with Cp1252, which is the default encoding in this IDE, but IntelliJ uses UTF-8 as default.
What should I do? Do you suggest I change IntelliJ encodig to Cp1252 or should I stick to UTF-8?
If I choose UTF-8, does IntelliJ provide any tool to convert my file encodings from Cp1252 to UTF-8? If not, how should I solve this encoding issue?
请先登录再写评论。
Please see http://blogs.jetbrains.com/idea/2013/03/use-the-utf-8-luke-file-encodings-in-intellij-idea/ .
Using UTF-8 is recommended. IDE can convert the files, probably not in bulk, you will need to open the files that are needed to be converted and change the encoding.
It may be more convenient to use command line tools (*nix/cygwin users can use iconv for batch convert: http://stackoverflow.com/questions/4544669/batch-convert-latin-1-files-to-utf-8-using-iconv).