
Untitled
By: a guest on
May 20th, 2012 | syntax:
None | size: 0.66 KB | hits: 17 | expires: Never
How do we decode a string that was posted from other domain?
ISO-8859-1,utf-8;q=0.7,*;q=0.3
var name = System.Text.Encoding.GetEncoding("iso-8859-1").GetBytes(model.Name);
string n = System.Text.Encoding.UTF8.GetString( name );
var b = System.Text.Encoding.GetEncoding("iso-8859-1").GetBytes(model.Name);
b[0] = 63
b[1] = 32
b[2] = 63
b[3] = 32
b[4] = 63
application/x-www-form-urlencoded; charset=UTF-8
accept-charset="UTF-8"
enctype="application/x-www-form-urlencoded; charset=UTF-8;"
<form method="post"
action="http://domain.com/subscribe"
accept-charset="UTF-8"
enctype="application/x-www-form-urlencoded; charset=UTF-8;">