<HTML> <HEAD> <meta http-equiv=content-type content="text/html; charset=UTF-8"> <SCRIPT LANGUAGE="JavaScript"> var isIE=!!window.ActiveXObject; if(isIE && document.charset!="utf-8")location.reload(false); </SCRIPT> <TITLE>encode before form post</TITLE> <META NAME="Author" CONTENT="emu"> </HEAD> <BODY> <form action="#" accept-charset="GB2312" onsubmit="if(isIE)document.charset='GB2312'"> <input name="test" value="我" readonly> <input type=submit> </form> </BODY> </HTML>