一、一些参考内容
关于为什么要编码?有哪些编码?怎么编码和解码?怎么解决中文乱码?请参考下边的博文:
二、在Eclipse中设置编码
1、打开Eclipse,菜单栏点击Window - Preferences。
2、点击Web - JSP Files,Encoding选择UTF-8,点击Apply and Close。
3、再次打开Window - Preferences,左侧点击General - Workspace,右侧Other设置UTF-8,点击Apply and Close。