PHP不支持中文吗?为什么我编写出来的中文显示为乱码?
最近我运用Mouselab WEB软件编写一个程序,它的目的是创建一个实验程序(它是一个交互式的程序变写软件,底层是PHP程序),编好程序以后,编为.php文件,但是再在Mouselab WEB软件上进行时,发现其中出现乱码,原来是我在实验程序中的中文,都没有显示出来(如下所示),请问该怎么消除乱码?谢谢!<?php
if (isset($_GET['subject'])) {$subject=$_GET['subject'];}
else {$subject="anonymous";}
if (isset($_GET['condnum'])) {$condnum=$_GET['condnum'];}
else {$condnum=-1;}
?><HTML>
<HEAD>
<TITLE>MouselabWEB survey</TITLE>
<script language=javascript src="mlweb2.js"></SCRIPT>
<link rel="stylesheet" href="mlweb.css" type="text/css">
</head>
<body onLoad="timefunction('onload','body','body')">
<!--BEGIN set vars--><script language="javascript">
//override defaults
mlweb_outtype="CSV";
mlweb_fname="mlwebform";
chkFrm=true;
warningTxt="Some questions have not been answered. Please answer all questions before continuing!";
</SCRIPT>
<!--END set vars-->
<FORM name="mlwebform" method="POST" onSubmit="return checkForm(this)" action="save.php">
<INPUT type=hidden name="procdata" value="">
<!-- set all variables here -->
<input type=hidden name="expname" value="experiment2">
<input type=hidden name="nextURL" value="thanks.html">
<input type=hidden name="to_email" value="sunnycloudxw@
<!--these will be set by the script -->
<input type=hidden name="subject" value="<?php echo($subject)?>">
<input type=hidden name="condnum" value="<?php echo($condnum)?>">
<!--BEGIN preHTML-->
<H2>涓?汉淇℃伅</H2>
<P> 1. 璇烽棶鎮ㄧ殑鎬у埆锛?/P>
<!-- Begin HTML Choice: name=鎬у埆-->
<TABLE><TR><td align=center><INPUT TYPE=RADIO NAME='鎬у埆' VALUE='1' onClick="RecordEventData(this,event);" onMouseOver="RecordEventData(this,event);" onMouseOut="RecordEventData(this,event);"></td><TD align=left>鐢?/TD></TR><TR><td align=center><INPUT TYPE=RADIO NAME='鎬у埆' VALUE='2' onClick="RecordEventData(this,event);" onMouseOver="RecordEventData(this,event);" onMouseOut="RecordEventData(this,event);"></td><TD align=left>濂?/TD></TR></TABLE>
<!-- End HTML Choice: name=鎬у埆-->
<P>2. 璇烽棶鎮ㄧ殑骞撮緞锛?/P>
<INPUT type=Text size=10 name='骞撮緞' value=''>
<P> 3. 璇烽棶鎮ㄧ幇鍦ㄧ殑韬?唤锛?/P>
<!-- Begin HTML Choice: name=韬?唤-->
<TABLE><TR><td align=center><INPUT TYPE=RADIO NAME='韬?唤' VALUE='1' onClick="RecordEventData(this,event);" onMouseOver="RecordEventData(this,event);" onMouseOut="RecordEventData(this,event);"></td><TD align=left>鏈??鐢?/TD></TR><TR><td align=center><INPUT TYPE=RADIO NAME='韬?唤' VALUE='2' onClick="RecordEventData(this,event);" onMouseOver="RecordEventData(this,event);" onMouseOut="RecordEventData(this,event);"></td><TD align=left>纭曞+鐢?/TD></TR><TR><td align=center><INPUT TYPE=RADIO NAME='韬?唤' VALUE='3' onClick="RecordEventData(this,event);" onMouseOver="RecordEventData(this,event);" onMouseOut="RecordEventData(this,event);"></td><TD align=left>鍗氬+鐢?/TD></TR></TABLE>
<!-- End HTML Choice: name=韬?唤-->
<!--END preHTML--><!--BEGIN postHTML-->
<!--END postHTML--><INPUT type="submit" value="Next Page"></FORM></body></html>