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