修改workspace编码

windows->preferences->gengral->workspace

在下面编码选择other->UTF-8应用。
Eclipse设置UTF-8编码

修改Content Types编码

windows->preferences->gengral->conten Types->Text

Default enconding–>UTF-8–>Update(这样把里面所有的文件设置为UTF-8编码)

Eclipse设置UTF-8编码

java propertiesfile重新设置一下

Eclipse设置UTF-8编码

 

修改web下文件的编码

windows->preferences->web->(css files、html files、javaServer face、jsp files)

在enconding设置为ISO 10646/Unicode(UTF-8)

注:ISO 10646
UTF-8也是符合ISO标准的

Eclipse设置UTF-8编码

修改项目的编码

Eclipse设置UTF-8编码

相关文章:

  • 2021-07-18
  • 2021-07-01
  • 2021-11-29
  • 2022-02-08
  • 2022-01-07
  • 2022-01-03
猜你喜欢
  • 2021-10-05
  • 2022-02-08
  • 2021-11-20
  • 2021-11-20
相关资源
相似解决方案