[英]Special characters after converting from CP1252 to UTF-8 encoding
I have a bulk of Java-files in Eclipse that was written when my Eclipse had CP1252 as encoding.我在 Eclipse 中有大量 Java 文件,这些文件是在我的 Eclipse 使用CP1252作为编码时编写的。 I am in Sweden and we have special character (Å å Ä ä Ö ö) .
我在瑞典,我们有特殊的性格(Å å Ä ä Ö ö) 。 Now we have changed the encoding to UT-8 .
现在我们已将编码更改为UT-8 。 All special characters is ruined now to strange characters instead!!
所有特殊字符现在都被毁坏为奇怪的字符!! Is there any other solution instead of open each file and rewrite all the special characters again?
有没有其他解决方案而不是打开每个文件并再次重写所有特殊字符?
I was facing the same issue in my project.我在我的项目中遇到了同样的问题。 Here are the steps that I followed:
以下是我遵循的步骤:
Run your project, it should not give any warnings or errors for those characters now.运行您的项目,它现在不应该为这些字符提供任何警告或错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.