UTF-8支持中文,用eclipse新建一个web项目时,修改设置为默认为UTF-8!
1、进入Windows->preference->web->jsp files选中UTF-8编码方式,点apply
2、windows->preferences->General->Workspace选中UTF-8,点apply
3、Windows->Content Types->选择右边的text,在下面的default encoding中输入UTF-8,点update
UTF-8支持中文,用eclipse新建一个web项目时,修改设置为默认为UTF-8!
1、进入Windows->preference->web->jsp files选中UTF-8编码方式,点apply
2、windows->preferences->General->Workspace选中UTF-8,点apply
3、Windows->Content Types->选择右边的text,在下面的default encoding中输入UTF-8,点update