tag中输出中文的问题
1.jsp中有
<%@ taglib uri="taglib.tld" prefix="test" %>
<html>
<head>
<title>
ExampleView
</title>
</head>
<body>
<h1>
<font size="2">
<test:index/><br>
</h1>
</body>
</html>
indexTag.java为
string[] indexList;
pageContext.getOut().print("<p>"+indexList[i]+"</p>");
如果indexList为中文,在jsp出现的就是??,英文没有问题,怎么回事?怎么解决?