help: Request.Form can't read character ' \251'

From: Amlan Samuil Warman (amlan@sig.net.id)
Date: 12/19/02


From: "Amlan Samuil Warman" <amlan@sig.net.id>
Date: Thu, 19 Dec 2002 09:41:55 +0700


hi,

I try to pass char "\251" or "©" from HTML form,
it work on ASP but not work on ASPX

my code:
-TEST.HTML----------------------------------------
<html><body>
<script language=javascript>
    function test_submit(){
            document.form1.field1.value="a \251 b";
            document.form1.submit();
    }
</script>
<form name=form1 action=TEST.ASPX method=post>
<input type=hidden name=field1>
<input type=button value=test onclick=test_submit()>
</form>
</body></html>
----------------------------------------------------

-TEST.ASPX--or--TEST.ASP--------------------
<%=Request.Form("field1")%>
-----------------------------------------------------

if I use TEST.ASP, the result on browser :

a © b

but with TEST.ASPX, the result on browser :

a b

it seem that Request.Form at aspnet can't read character other than
0x20 - 0x7e

can't anyone help, I need those character as separator
to construct my string data with JavaScript ...
and I want to use ASP.net rather the old ASP...

thanks...


Quantcast