我在网上下了段代码,用myeclipse打开时发现是乱码?请帮忙解决下,谢谢了;
<!-- File name:calendar.jsp -->
<!-- ÏÔʾÈÎÒâÄê¡¢ÔµÄÈÕÀú -->
<!-- ¿ÉÑ¡Ôñ²»Í¬µÄÄê¡¢Ô¡£ -->
<%@ page language="java" import="java.util.*" %>
<%!
String year;
String month;
%>
<!-- »ñµÃ¿Í»§±íµ¥²ÎÊý -->
<%
month=request.getParameter("month");
year =request.getParameter("year");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ÈÕÀú</title>
<!¡ª É趨½Å±¾ÓïÑÔΪJava -->
<script Language="JavaScript">
<!--
function changeMonth()
//ÔÚд°¿ÚÖÐÏÔʾѡ¶¨µÄÔ·ÝÈÕÀú
{
var mm="calendar.jsp?month="+document.sm.elements[0].selectedIndex+"&year="
+<%=year%>;
window.open(mm,"_self");
}
//-->
</script>
</head>
<%! String days[]; %>
<%
//ÿ¸öÔµÄÈÕÀúΪ6ÐСÁ7ÁÐ
days=new String[42];
//ÈÕÀú±íÊý×é³õʼ»¯
for(int i=0;i<42;i++)
{
days[i]="";
}
%>
<%
//»ñµÃCalenderÀàµÄÒ»¸öʵÀý
Calendar thisMonth=Calendar.getInstance();
//ÉèÖÃÔ·Ý
if(month!=null && (!month.equals("null")))
thisMonth.set(Calendar.MONTH, Integer.parseInt(month));
//ÉèÖÃÄê·Ý
if(year!=null && (!year.equals("null")))
thisMonth.set(Calendar.YEAR, Integer.parseInt(year));
//»ñµÃ±íʾÄê·ÝµÄ×Ö·û´®
year=String.valueOf(thisMonth.get(Calendar.YEAR));
//»ñµÃ±íʾÔ·ݵÄ×Ö·û´®
month=String.valueOf(thisMonth.get(Calendar.MONTH));
thisMonth.setFirstDayOfWeek(Calendar.SUNDAY);
thisMonth.set(Calendar.DAY_OF_MONTH,1);
int firstIndex=thisMonth.get(Calendar.DAY_OF_WEEK)-1;
int maxIndex=thisMonth.getActualMaximum(Calendar.DAY_OF_MONTH);
for(int i=0;i<maxIndex;i++)
{
days[firstIndex+i]=String.valueOf(i+1);
}
//ÈÕÀú±íÊý×éÖµÉèÖÃÍê±Ï
%>
<body>
<FORM name="sm" method="post" action="calendar.jsp">
<%=year%>Äê <%=Integer.parseInt(month)+1%>ÔÂ
<table border="0" width="168" height="81">
<div align="center">
<!-- ÈÕÀú±íµÄµÚÒ»ÐÐ,ÏÔʾÐÇÆÚ -->
<tr>
<th width="25" height="16" bgcolor="#FFFF00"><font color="red">ÈÕ</font></th>
<th width="25" height="16" bgcolor="#FFFF00">Ò»</th>
<th width="25" height="16" bgcolor="#FFFF00">¶þ</th>
<th width="25" height="16" bgcolor="#FFFF00">Èý</th>
<th width="25" height="16" bgcolor="#FFFF00">ËÄ</th>
<th width="25" height="16" bgcolor="#FFFF00">Îå</th>
<th width="25" height="16" bgcolor="#FFFF00"><font color="green">Áù</font></th>
</tr>
<!-- ÈÕÀú±íµÄÆäËûÐÐ,ÏÔʾÈÕÆÚ -->
<%
for(int j=0;j<6;j++)
{
%>
<tr>
<% for(int i=j*7;i<(j+1)*7;i++)
{
%>
<td width="15%" height="16" bgcolor="#C0C0C0" valign="middle" align="center">
<%=days[i]%> </td>
<%
}
%>
</tr>
<%
}
%>
</div>
</table>
<!-- ¿Í»§±íµ¥¿Í»§¿ÉÑ¡Ôñ²¿·Ö,Ô·ݺÍÄê·ÝµÄÑ¡Ôñ -->
<table border="0" width="168" height="20">
<tr>
<td width=30%>
<select name="month" size="1" onchange="changeMonth()" >
<option value="0">Ò»ÔÂ</option>
<option value="1">¶þÔÂ</option>
<option value="2">ÈýÔÂ</option>
<option value="3">ËÄÔÂ</option>
<option value="4">ÎåÔÂ</option>
<option value="5">ÁùÔÂ</option>
<option value="6">ÆßÔÂ</option>
<option value="7">°ËÔÂ</option>
<option value="8">¾ÅÔÂ</option>
<option value="9">Ê®ÔÂ</option>
<option value="10">ʮһÔÂ</option>
<option value="11">Ê®¶þÔÂ</option>
</select>
<!-- ÉÏÃæÿһÐжÔÓ¦ÈÕÀúÉÏÔ·ÝÒ»¸ö¿ÉÑ¡Ïî -->
</td>
<td width=28%>
<input type=text name="year" value=<%=year%> size=4 maxlength=4>
</td>
<td>Äê</td>
<td width=28%><input type=submit value="Ìá½»"></td>
<!-- ÉÏÃæ¶ÔÓ¦Ò³Ãæ¡°Ìá½»¡±°´Å¥µÄ²Ù×÷ -->
</tr>
</table>
</FORM>
<script Language="JavaScript">
<!¡ª
//ĬÈÏËùÑ¡ÔñÔ·ÝΪµ±Ç°ÔÂ
document.sm.month.options.selectedIndex=<%=month%>;
//-->
</script>
</body>
</html>
是编码错误吗???