在eclipse里能正確顯示中文,但是保存的時候提示encoding(iso-8859-1)cannot convert characters (such as the one in position ...)
選擇ok保存的話用記事本打開jsp文件應(yīng)該是中文的地方就顯示為???
先新建一jsp文件。
輸入:
<%@ page contentType="text/html; charset=utf-8"%>
按保存。。。。
把你要的代碼復(fù)制進(jìn)來。。保存,發(fā)現(xiàn)OK了。。