1、导入web项目后出现错误提示,打开一看是中文乱码
2、对项目右键,点击properties
3、点击resource,在text file encoding中,默认选择inherited from container(GBK)
4、勾选other,选择UTF-8
5、点击Apply —>OK
6、错误提示消失,很明显是由于编码格式问题导致该错误产生。
1、导入web项目后出现错误提示,打开一看是中文乱码
2、对项目右键,点击properties
3、点击resource,在text file encoding中,默认选择inherited from container(GBK)
4、勾选other,选择UTF-8
5、点击Apply —>OK
6、错误提示消失,很明显是由于编码格式问题导致该错误产生。