The input form must be set the the UTF-8 character-set using meta tags. The purpose for setting browser
character-set is to encode all Unicode code points as UTF-8 byte streams to the submit_to_database.asp
Active Server Page.
<script language=javascript>
function submitPage()
{
document.frmMain.action='submit_to_database.asp';
document.frmMain.method='POST';
document.frmMain.submit();
}
</script>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8">
<FORM NAME=frmMain>
<pre>
Unicode Character:<INPUT TYPE="text" NAME="code_point" VALUE="">
Unicode Value: <INPUT TYPE="text" NAME="unicode_number" VALUE=""><br>
</pre>
<br>
<INPUT TYPE="button" VALUE="Submit Unicode" onClick="submitPage();">
</FORM>
Comments